@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;
 }
  @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);
  }