public static GrAnnotation @NotNull [] getResolvedAnnotations(@NotNull GrModifierList modifierList) {
    final GrAnnotation[] rawAnnotations = modifierList.getRawAnnotations();

    if (!mayHaveAnnotationCollector(rawAnnotations)) return rawAnnotations;

    final List<GrAnnotation> result = new ArrayList<>();
    for (GrAnnotation annotation : rawAnnotations) {
      final PsiAnnotation annotationCollector = findAnnotationCollector(annotation);
      if (annotationCollector != null) {
        if (!collectCompileDynamic(result, annotation)) {
          collectAnnotations(result, annotation, annotationCollector);
        }
      }
      else if (!collectHardcoded(result, annotation)) {
        result.add(annotation);
      }
    }
    return result.toArray(GrAnnotation.EMPTY_ARRAY);
  }
public static GrAnnotation @NotNull [] getResolvedAnnotations(@NotNull GrModifierList modifierList)