ReformatFilesOptions (@NotNull Project project, VirtualFile @NotNull [] files) { if (ApplicationManager.getApplication().isUnitTestMode()) { return myTestOptions; } ReformatFilesDialog dialog = new ReformatFilesDialog(project, files); if (!dialog.showAndGet()) { return null; } return dialog; }