@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiIdentifier element) {
    ImportAvailability availability = getStaticImportClass(element);
    if (availability == null) return null;
    if (availability.resolved instanceof PsiClass) {
      return Presentation.of(JavaBundle.message("intention.add.single.member.import.text", availability.qName));
    }
    PsiFile file = element.getContainingFile();
    if (!(file instanceof PsiJavaFile)) return null;
    PsiImportStatementBase existingImport =
      findExistingImport(file, availability.resolved.getContainingClass(), StringUtil.getShortName(availability.qName));
    if (existingImport != null && !existingImport.isOnDemand()) {
      return Presentation.of(JavaBundle.message("intention.use.single.member.static.import.text" , availability.qName));
    }
    return Presentation.of(JavaBundle.message("intention.add.single.member.static.import.text", availability.qName));
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiIdentifier element)