void (@NotNull PsiDirectory workingDirectory, @NotNull GlobalSearchScope scope) { myMockCodeStyleManager.clearFormattedFiles(); AbstractLayoutCodeProcessor processor = new ReformatCodeProcessor(getProject(), workingDirectory, true, false); ReformatCodeAction.registerScopeFilter(processor, scope); processor = new OptimizeImportsProcessor(processor); processor.run(); }