boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FilePosition position = (FilePosition)o; return myStartLine == position.myStartLine && myStartColumn == position.myStartColumn && myEndLine == position.myEndLine && myEndColumn == position.myEndColumn && Objects.equals(myFile, position.myFile); }