private static boolean rangeEquals(@NotNull SelfElementInfo info, int start, int end, boolean greedy) {
    return start == info.getPsiStartOffset() && end == info.getPsiEndOffset() && greedy == info.isGreedy();
  }
private static boolean rangeEquals(@NotNull SelfElementInfo info, int start, int end, boolean greedy)