@Override
  protected void update(Presentation presentation, int toImplement, int toOverride) {
    if (toOverride > 0) {
      presentation.setEnabledAndVisible(true);
      presentation.setText(toOverride == 1 ? JavaBundle.message("action.override.method")
                                           : JavaBundle.message("action.override.methods"));
    }
    else {
      presentation.setEnabledAndVisible(false);
    }
  }
@Override
  protected void update(Presentation presentation, int toImplement, int toOverride)