code: public static boolean isBinaryExpressionType(Expression expression, String token) {
          if (expression instanceof BinaryExpression) {
              if (token.equals(((BinaryExpression) expression).getOperation().getText())) {
                  return true;
              }
          }
          return false;
      }
docs: Returns true if the expression is a binary expression with the specified token.
  @param expression
  expression
  @param token
  token
  @return
  as described