PsiAnnotation (@NotNull final PsiModifierListOwner listOwner, @NotNull Set<String> annotationNames, boolean skipExternal) { AnnotationAndOwner result = findAnnotationAndOwnerInHierarchy(listOwner, annotationNames, skipExternal); return result == null ? null : result.annotation; }