public static boolean isInsideSurrogatePair(@NotNull Document document, int offset) {
    return isSurrogatePair(document, offset - 1);
  }
public static boolean isInsideSurrogatePair(@NotNull Document document, int offset)