void (Refactoring processor) { final Runnable prepareSuccessfulCallback = () -> close(DialogWrapper.OK_EXIT_CODE); processor.setInteractive(prepareSuccessfulCallback); processor.setPreviewUsages(isPreviewUsages()); processor.run(); }