void () { @Language("JAVA") String fileText = """ class C { private static class Pr<caret>ivate {} public static class Public extends Private {}}"""; PsiFile file = myFixture.addFileToProject("Foo.java", fileText); myFixture.addClass("class Inheritor extends C.Public {}"); myFixture.configureFromExistingVirtualFile(file.getVirtualFile()); assertSize(2, getTargets(file)); }