private static boolean isBetweenWhitespaces(@NotNull CharSequence text, int offset) {
    return 0 < offset && offset < text.length() &&
           isWhitespace(text.charAt(offset - 1)) &&
           isWhitespace(text.charAt(offset));
  }
private static boolean isBetweenWhitespaces(@NotNull CharSequence text, int offset)