@Nullable
  private static List<PsiAnnotation> findNonCodeAnnotations(@NotNull PsiModifierListOwner element,
                                                            @NotNull Collection<String> annotationNames) {
    if (element instanceof PsiLocalVariable) {
      // Non-code annotations for local variables are not supported: don't bother to search them
      return null;
    }
    PsiModifierListOwner listOwner = AnnotationCacheOwnerNormalizer.normalize(element);

    Map<Collection<String>, List<PsiAnnotation>> map = CachedValuesManager.getManager(element.getProject())
      .getParameterizedCachedValue(
        listOwner,
        NON_CODE_ANNOTATIONS_KEY,
        NON_CODE_ANNOTATIONS_PROVIDER,
        false,
        listOwner
      );

    return map.get(annotationNames);
  }
@Nullable
  private static List<PsiAnnotation> findNonCodeAnnotations(@NotNull PsiModifierListOwner element,
                                                            @NotNull Collection<String> annotationNames)