void () { 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 (!verifyTargetClass(processor.getTargetClass())) return; invokeRefactoring(processor); }