private static boolean isSimilarHeadStatements(PsiStatement @NotNull [] thenBranch) {
      if (thenBranch.length <= SIMILAR_STATEMENTS_COUNT) return false;
      PsiExpressionStatement expressionStatement = tryCast(thenBranch[0], PsiExpressionStatement.class);
      return isSimilarStatements(thenBranch, expressionStatement);
    }
private static boolean isSimilarHeadStatements(PsiStatement @NotNull [] thenBranch)