boolean (PsiAnnotation annotation) { PsiClass containingClass = ClassUtils.getContainingClass(annotation); if (containingClass == null || !containingClass.isValid()) return false; String qualifiedName = containingClass.getQualifiedName(); // We deliberately ignore nullability annotations on Guava functional interfaces to avoid noise warnings // See IDEA-170548 for details return "com.google.common.base.Predicate".equals(qualifiedName) || "com.google.common.base.Function".equals(qualifiedName); }