@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiElement element) {
    if (element instanceof PsiFragment) {
      return Presentation.of(IntentionPowerPackBundle.message("copy.string.template.text.to.clipboard.intention.name"));
    }
    PsiPolyadicExpression polyadicExpression =
      PsiTreeUtil.getParentOfType(element, PsiPolyadicExpression.class, false,
                                  PsiStatement.class, PsiMember.class, PsiLambdaExpression.class);
    if (ExpressionUtils.isStringConcatenation(polyadicExpression)) {
      return Presentation.of(IntentionPowerPackBundle.message("copy.concatenated.string.to.clipboard.intention.name"));
    }
    if (PsiUtil.isJavaToken(element, ElementType.STRING_LITERALS)) {
      return Presentation.of(IntentionPowerPackBundle.message("copy.string.literal.to.clipboard.intention.name"));
    }
    return null;
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiElement element)