public boolean showDialog(final boolean direct) {
    AbstractExtractDialog dialog = createExtractMethodDialog(direct);
    dialog.show();
    if (dialog.isOK()) {
      apply(dialog);
      return true;
    }
    return false;
  }
public boolean showDialog(final boolean direct)