if (method == null) {
DBMethodRef methodRef = executionInput.getMethodRef();
MessageUtil.showErrorDialog("Could not resolve " + methodRef.getMethodObjectType().getName() + " \"" + methodRef.getSchemaName() + "." + methodRef.getQualifiedMethodName() + "\".");
} else {
final Project project = method.getProject();
DatabaseExecutionInterface executionInterface = method.getConnectionHandler().getInterfaceProvider().getDatabaseExecutionInterface();
final MethodExecutionProcessor executionProcessor = executionInterface.createExecutionProcessor(method);
new BackgroundTask(project, "Executing method", false) {
public void execute(@NotNull ProgressIndicator progressIndicator) {
try {
initProgressIndicator(progressIndicator, true, "Executing " + method.getQualifiedNameWithType());