in old/dekaf-core/src/main/java/org/jetbrains/dekaf/sql/TextFragment.java [48:58]
public int compareTo(@NotNull final TextFragment that) {
if (this == that) return 0;
//noinspection ConstantConditions
if (that == null) throw new IllegalArgumentException("Comparison with null");
int z = this.getTextName().compareTo(that.getTextName());
if (z == 0) z = this.row - that.row;
if (z == 0) z = this.pos - that.pos;
if (z == 0) z = this.text.compareTo(that.text);
return z;
}