MarkerRange (@NotNull Editor editor, int startLine, int endLine) { int y1; int y2; if (startLine == endLine) { if (startLine == 0) { y1 = lineToY(editor, 0, true, true) + 1; } else { y1 = lineToY(editor, startLine - 1, false, true); } y2 = y1; } else { y1 = lineToY(editor, startLine, true, false); y2 = lineToY(editor, endLine - 1, false, false); } return new MarkerRange(y1, y2); }