protected boolean showRefactoringDialog() {
    final boolean anInterface = myTargetClass.isInterface();
    final boolean needsThis = needsThis() || PsiUtil.isInnerClass(myTargetClass);
    boolean showCanBeStatic = !needsThis && !anInterface && !myAnonOrLocalClass.hasModifierProperty(PsiModifier.STATIC);
    final AnonymousToInnerDialog dialog = new AnonymousToInnerDialog(
      myProject,
      myAnonOrLocalClass,
      myVariableInfos,
      showCanBeStatic);
    if (!dialog.showAndGet()) {
      return false;
    }
    myNewClassName = dialog.getClassName();
    myVariableInfos = dialog.getVariableInfos();
    myMakeStatic = !myAnonOrLocalClass.hasModifierProperty(PsiModifier.STATIC) && !needsThis && (anInterface || dialog.isMakeStatic());
    return true;
  }
protected boolean showRefactoringDialog()