public static int indexOf(@NotNull CharSequence buffer, @NotNull CharSequence pattern, int fromIndex) {
    return indexOf(buffer, pattern, fromIndex, buffer.length());
  }
public static int indexOf(@NotNull CharSequence buffer, @NotNull CharSequence pattern, int fromIndex)