@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiElement element) {
    final Presentation presentation = super.getPresentation(context, element);
    if (presentation == null) return null;

    final PsiModifierList psiModifierList = getElementToReplace(element);
    if (null == psiModifierList) return null;

    return presentation;
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiElement element)