@Override
  public void invoke(@NotNull Project project, Editor editor, PsiFile file) throws IncorrectOperationException {
    ActionContext context = ActionContext.from(editor, file);
    ModCommand command = myModAction.perform(context);
    ModCommandExecutor instance = ModCommandExecutor.getInstance();
    if (file.isPhysical()) {
      instance.executeInteractively(context, command, editor);
    } else {
      instance.executeForFileCopy(command, file);
    }
  }
@Override
  public void invoke(@NotNull Project project, Editor editor, PsiFile file)