void (@NotNull PsiElement element, @NotNull String inspectionId) { final PsiFile file = element.getContainingFile(); if (!(file instanceof XmlFile)) return; final XmlDocument document = ((XmlFile)file).getDocument(); final PsiElement anchor = document != null ? document.getRootTag() : file.findElementAt(0); assert anchor != null; suppress(file, findFileSuppression(anchor, null, element), inspectionId, anchor.getTextRange().getStartOffset()); }