void () { useStandardProviders(); final PsiClass[] classes = JavaDirectoryService.getInstance().getClasses(getPackageDirectory()); sortClassesByName(classes); PsiClass psiClass = classes[0]; final AbstractProjectViewPane pane = myStructure.createPane(); final PsiFile containingFile = psiClass.getContainingFile(); final VirtualFile virtualFile = containingFile.getVirtualFile(); myStructure.checkNavigateFromSourceBehaviour(psiClass, virtualFile, pane); PlatformTestUtil.assertTreeEqual(pane.getTree(), """ -Project -PsiDirectory: showClassMembers -PsiDirectory: src -PsiDirectory: com -PsiDirectory: package1 [Class1] Class2 +External Libraries """ , true); changeClassTextAndTryToNavigate("class Class11 {}", (PsiJavaFile)containingFile, pane, """ -Project -PsiDirectory: showClassMembers -PsiDirectory: src -PsiDirectory: com -PsiDirectory: package1 -Class1.java [Class11] Class2 +External Libraries """); changeClassTextAndTryToNavigate("class Class1 {}", (PsiJavaFile)containingFile, pane, """ -Project -PsiDirectory: showClassMembers -PsiDirectory: src -PsiDirectory: com -PsiDirectory: package1 [Class1] Class2 +External Libraries """); doTestMultipleSelection(pane, ((PsiJavaFile)containingFile).getClasses()[0]); }