private static boolean isAfterStatementList(@NotNull ASTNode child) {
    final PsiElement prev = child.getPsi().getPrevSibling();
    if (!(prev instanceof PyAstStatement)) {
      return false;
    }
    final PsiElement lastChild = PsiTreeUtil.getDeepestLast(prev);
    return lastChild.getParent() instanceof PyAstStatementList;
  }
private static boolean isAfterStatementList(@NotNull ASTNode child)