@Override
  protected void doAction() {
    final Object targetVariable = myList.getSelectedValue();
    LOG.assertTrue(targetVariable != null);
    final ConvertToInstanceMethodProcessor processor = 
      new ConvertToInstanceMethodProcessor(myMethod.getProject(),
                                           myMethod, 
                                           targetVariable instanceof PsiParameter ? (PsiParameter)targetVariable : null,
                                           myVisibilityPanel.getVisibility());
    if (!ApplicationManager.getApplication().isUnitTestMode() && !verifyTargetClass(processor.getTargetClass())) return;
    invokeRefactoring(processor);
  }
@Override
  protected void doAction()