boolean (@NotNull PsiElement element, @NotNull final Class<? extends PyElement> parentClass, @NotNull String suppressId) { PyElement parent = PsiTreeUtil.getParentOfType(element, parentClass, false); if (parent == null) { return false; } return isSuppressedForElement(parent, suppressId); }