PsiFile (@NotNull String fileName, @NotNull String committedContent, @NotNull String actualContent) { PsiFile file = myFileStructure.addTestFile(fileName, actualContent); if (!committedContent.equals(actualContent)) { registerCommittedRevision(committedContent, file); } return file; }