boolean (@NotNull PsiElement element) { final PsiFile file = element.getContainingFile(); if (file instanceof PyFileImpl && !((PyFileImpl)file).isAcceptedFor(this.getClass())) { return true; } return isSuppressForCodeFragment(element) || super.isSuppressedFor(element); }