boolean (@NotNull UAnnotation annotation) { String qualifiedName = annotation.getQualifiedName(); if (Comparing.strEqual(qualifiedName, BatchSuppressManager.SUPPRESS_INSPECTIONS_ANNOTATION_NAME) || Comparing.strEqual(qualifiedName, "kotlin.Suppress")) { UAnnotated annotated = UastUtils.getParentOfType(annotation, UAnnotated.class); // TODO support kotlin suppressions if (annotated == null) { UElement parent = annotation.getUastParent(); if (parent == null) { PsiElement sourcePsi = annotation.getSourcePsi(); if (sourcePsi != null) { annotated = UastContextKt.toUElement(sourcePsi.getContainingFile(), UFile.class); } } } retrieveSuppressions(annotation, annotated); } return false; }