void () { ChangedFilesStructure fs = new ChangedFilesStructure(myWorkingDirectory); PsiFile modified11 = fs.createFile("Test4.java", COMMITTED, MODIFIED); PsiFile modified12 = fs.createFile("Test5.java", COMMITTED, MODIFIED); fs.createDirectoryAndMakeItCurrent(); PsiDirectory dirToReformat = fs.getCurrentDirectory(); PsiFile modified21 = fs.createFile("Test6.java", COMMITTED, MODIFIED); PsiFile modified22 = fs.createFile("Test7.java", COMMITTED, MODIFIED); fs.createDirectoryAndMakeItCurrent(); PsiFile modified31 = fs.createFile("Test8.java", COMMITTED, MODIFIED); PsiFile modified32 = fs.createFile("Test9.java", COMMITTED, MODIFIED); reformatDirectory(dirToReformat); assertFormattedLines(CHANGED_LINES, modified21, modified22, modified31, modified32); assertFormattedLines(NO_CHANGED_LINES, modified11, modified12); }