void () { TestFileStructure fileTree = new TestFileStructure(getModule(), myWorkingDirectory); PsiFile java1 = fileTree.addTestFile("Test.java", "empty content"); PsiFile java2 = fileTree.addTestFile("Pair.java", "empty content"); PsiFile java3 = fileTree.addTestFile("Pair2.java", "empty content"); PsiFile php = fileTree.addTestFile("Test.phpMask", "empty content"); PsiFile js = fileTree.addTestFile("Test.jsMask", "empty content"); reformatDirectoryWithFileMask(myWorkingDirectory, "*.java"); assertWasFormatted(java1, java2, java3); assertWasNotFormatted(php, js); reformatDirectoryWithFileMask(myWorkingDirectory, "*.jsMask"); assertWasFormatted(js); assertWasNotFormatted(java1, java2, java3, php); }