@Override
    protected void invoke(@NotNull ActionContext context, @NotNull PsiClass psiClass, @NotNull ModPsiUpdater updater) {
      String runtimeRef = StringUtil.getQualifiedName("java.lang.annotation.RetentionPolicy", "RUNTIME");
      PsiAnnotation newAnnotation = JavaPsiFacade.getElementFactory(context.project())
        .createAnnotationFromText("@Retention(" + runtimeRef + ")", psiClass);
      PsiModifierList list = psiClass.getModifierList();
      if (list == null) return;
      PsiAnnotation annotation = AddAnnotationPsiFix.addPhysicalAnnotationIfAbsent(
        CommonClassNames.JAVA_LANG_ANNOTATION_RETENTION, newAnnotation.getParameterList().getAttributes(), list);
      if (annotation != null) {
        JavaCodeStyleManager.getInstance(context.project()).shortenClassReferences(annotation);
      }
    }
@Override
    protected void invoke(@NotNull ActionContext context, @NotNull PsiClass psiClass, @NotNull ModPsiUpdater updater)