boolean (@NotNull ActionChangeRange other, int adjustment, boolean isInverted) { int newLength = isInverted ? myOldLength : myNewLength; if (other.getOffset() >= myOffset + newLength) { onMove(adjustment); return true; } return false; }