null
);
return;
}
final DartControlFlow controlFlow = DartControlFlow.analyze(elements);
selectionModel.isBlockSelectionGuarded();
if (controlFlow.getReturnValues().size() > 1) {
CommonRefactoringUtil.showErrorHint(
project,
editor,
RefactoringBundle.getCannotRefactorMessage(DartBundle.message("dart.refactoring.multiple.output.values")),
DartBundle.message("dart.refactoring.extract.method.error"),
null
);
return;
}
final Scope scope = findScope(elements);
controlFlow.filterParams(new Condition<DartComponentName>() {
@Override
public boolean value(DartComponentName name) {
return !scope.containsDeclaration(name);
}
});