public boolean equals(Object o) {
    if (o instanceof SourcePosition sourcePosition) {
      return Comparing.equal(sourcePosition.getFile(), getFile()) && sourcePosition.getOffset() == getOffset();
    }

    return false;
  }
public boolean equals(Object o)