public static boolean hasStatementCount(@Nullable PsiCodeBlock codeBlock, int count) {
    return hasChildrenOfTypeCount(codeBlock, count, PsiStatement.class);
  }
public static boolean hasStatementCount(@Nullable PsiCodeBlock codeBlock, int count)