void () { TestFileStructure fileTree = new TestFileStructure(getModule(), myWorkingDirectory); fileTree.createDirectoryAndMakeItCurrent("src"); PsiFile java2 = fileTree.addTestFile("Test2.tj", "empty content"); PsiFile php2 = fileTree.addTestFile("Pair2.phpMask", "empty content"); PsiFile js2 = fileTree.addTestFile("Pair2.jsMask", "empty content"); PsiDirectory test = fileTree.createDirectoryAndMakeItCurrent("test"); PsiFile testJava1 = fileTree.addTestFile("testJava1.tj", "empty content"); PsiFile testPhp1 = fileTree.addTestFile("testPhp1.phpMask", "empty content"); PsiFile testJs1 = fileTree.addTestFile("testJs1.jsMask", "empty content"); GlobalSearchScope testScope = directoryScope(test, true); reformatAndOptimize(myWorkingDirectory, testScope); assertWasFormatted(testJava1, testPhp1, testJs1); assertWasNotFormatted(java2, php2, js2); }