void addAnnotation(@NotNull PsiMember owner, boolean isStatic) {
    PsiModifierList modifierList = owner.getModifierList();
    if (modifierList != null && CompileStaticUtil.getCompileStaticAnnotation(owner) == null) {
      String annotation = isStatic ? GROOVY_TRANSFORM_COMPILE_STATIC : GROOVY_TRANSFORM_COMPILE_DYNAMIC;
      modifierList.addAnnotation(annotation);
    }
  }
void addAnnotation(@NotNull PsiMember owner, boolean isStatic)