void () { final AbstractProjectViewPane pane = myStructure.createPane(); getProjectTreeStructure().setProviders(new ClassesTreeStructureProvider(myProject), new FormMergerTreeStructureProvider(myProject)); assertStructureEqual(getPackageDirectory(), """ PsiDirectory: package1 PsiClass:Class1 PsiJavaFile:Class2.java PsiClass:Class2 PsiClass:Class3 PsiJavaFile:Class4.java PsiFile(plain text):Form2.form Form:Form1 PsiClass:Form1 PsiFile(plain text):Form1.form """); PsiClass psiClass = ((PsiJavaFile)getPackageDirectory().findFile("Form1.java")).getClasses()[0]; myStructure.checkNavigateFromSourceBehaviour(psiClass, psiClass.getContainingFile().getVirtualFile(), pane); }