void (List<PsiFile> @NotNull ... fileCollection) { for (List<PsiFile> files : fileCollection) { for (PsiFile file : files) { String className = getClassNameFromJavaFile(file); assertEquals(getFormattedAndImportOptimizedJavaSourceFor(className), file.getText()); } } }