A medieval castle believed to have disappeared around 150 years ago has turned out to be hiding in plain sight inside a university building in Dublin, with researchers finding that its ancient walls and courtyard survived beneath the later structure.