code: public static boolean startsWith(final boolean caseSensitive, final CharSequence text, final CharSequence prefix) {
  
          if (text == null) {
              throw new IllegalArgumentException("Text cannot be null");
          }
          if (prefix == null) {
              throw new IllegalArgumentException("Prefix cannot be null");
          }
  
          if (text instanceof String && prefix instanceof String) {
              return (caseSensitive ? ((String)text).startsWith((String)prefix) : startsWith(caseSensitive, text, 0, text.length(), prefix, 0, prefix.length()));
          }
  
          return startsWith(caseSensitive, text, 0, text.length(), prefix, 0, prefix.length());
  
      }
docs: <p>
  Checks whether a text starts with a specified prefix.
  </p>
  
  @param caseSensitive whether the comparison must be done in a case-sensitive or case-insensitive way.
  @param text the text to be checked for prefixes.
  @param prefix the prefix to be searched.
  @return whether the text starts with the prefix or not.