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