private static boolean isLeadingTrailingSpace(@NotNull CharSequence text, int start) {
    return isLeadingSpace(text, start) || isTrailingSpace(text, start);
  }
private static boolean isLeadingTrailingSpace(@NotNull CharSequence text, int start)