void (@NonNls String text, Processor<? super PsiFile> run) { PsiFile file = configureByText(JavaFileType.INSTANCE, text); PsiModificationTracker tracker = PsiModificationTracker.getInstance(getProject()); long count = tracker.getModificationCount(); WriteCommandAction.runWriteCommandAction(getProject(), () -> { run.process(file); }); assertFalse(tracker.getModificationCount() == count); }