@Override
  public void invoke(@NotNull Project project, Editor editor, PsiFile psiFile) throws IncorrectOperationException {
    if (ApplicationManager.getApplication().isUnitTestMode()) {
      DynamicManager.getInstance(project).addMethod(QuickfixUtil.createSettings(myReferenceExpression));
      return;
    }
    DynamicDialog dialog = new DynamicMethodDialog(myReferenceExpression);
    dialog.show();
  }
@Override
  public void invoke(@NotNull Project project, Editor editor, PsiFile psiFile)