Пример #1
0
 @NotNull
 public List<AnnotationDescriptor> resolveAnnotations(
     @NotNull JavaAnnotationOwner owner, @NotNull PostponedTasks tasks) {
   List<AnnotationDescriptor> result = new ArrayList<AnnotationDescriptor>();
   resolveAnnotations(owner.getAnnotations(), tasks, result);
   resolveAnnotations(externalAnnotationResolver.findExternalAnnotations(owner), tasks, result);
   return result;
 }
Пример #2
0
  @Nullable
  public JavaAnnotation findAnnotationWithExternal(
      @NotNull JavaAnnotationOwner owner, @NotNull FqName name) {
    JavaAnnotation annotation = owner.findAnnotation(name);
    if (annotation != null) {
      return annotation;
    }

    return externalAnnotationResolver.findExternalAnnotation(owner, name);
  }