Added new method `Locator.enclosedIn` for source compatibility reasons

I just noticed I can't change the signature of `Locator.locateIn` otherwise
the Scala vs IDE integration script fails to compile. I'm hoping that restoring
the original signature and marking the method final is ok (it's not a source
compatible change).

I'll be squashing this commit before merging.