void (@NotNull PsiDirectory directory, @Nullable SearchScope scope) { myMockCodeStyleManager.clearFormattedFiles(); AbstractLayoutCodeProcessor processor = new ReformatCodeProcessor(getProject(), directory, true, false); ReformatCodeAction.registerScopeFilter(processor, scope); processor = new RearrangeCodeProcessor(processor); processor.run(); }