@Override
  public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
    if (!DumbService.getInstance(project).isUsableInCurrentContext(myModAction)) return false;
    Presentation presentation = myModAction.getPresentation(ActionContext.from(editor, file));
    if (presentation == null) return false;
    myPresentation = presentation;
    return true;
  }
@Override
  public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file)