void (String after) { myFixture.testHighlighting(); WriteCommandAction.writeCommandAction(getProject(), getFile()).run(() -> new OptimizeImportsProcessor(getProject(), getFile()).runWithoutProgress()); myFixture.checkResult(after); }