boolean (@NotNull FileEditorState otherState, @NotNull FileEditorStateLevel level) { if (!(otherState instanceof TextEditorState other)) return false; return level == FileEditorStateLevel.NAVIGATION && ArrayUtil.areEqual(CARETS, other.CARETS, (a, b) -> Math.abs(a.LINE - b.LINE) < MIN_CHANGE_DISTANCE); }