ModCommand (@NotNull RuntimeException e) { Throwable cause = e.getCause(); if (cause instanceof AnalysisCanceledException) { return ModCommand.error( RefactoringBundle.getCannotRefactorMessage(JavaRefactoringBundle.message("extract.method.control.flow.analysis.failed"))); } throw e; }