boolean (@NotNull ASTNode child) { final PsiElement psi = PsiTreeUtil.getParentOfType(child.getPsi(), PyStatement.class); return psi instanceof PyIfStatement || psi instanceof PyForStatement || psi instanceof PyWithStatement || psi instanceof PyClass || psi instanceof PyFunction || psi instanceof PyTryExceptStatement || psi instanceof PyElsePart || psi instanceof PyIfPart || psi instanceof PyWhileStatement; }