boolean (@NotNull Editor editor, int line, int x, int start, int end) { return line != -1 && editor.xyToLogicalPosition(new Point(x, start)).line <= line && line < editor.xyToLogicalPosition(new Point(x, end)).line; }