@Override
  public void update(@NotNull AnActionEvent e) {
    e.getPresentation().setVisible(myType.canCreate(myArtifactEditor.getContext(), myArtifactEditor.getArtifact()));
  }
@Override
  public void update(@NotNull AnActionEvent e)