void () { createEditor("line1\nline2\n"); EditorTestUtil.addFoldRegion(getEditor(), 5, 6, "...", true); @NotNull Pair<@NotNull Interval, @Nullable Interval> p = EditorUtil.logicalLineToYRange(getEditor(), 1); assertEquals(0, p.first.intervalStart()); assertEquals(getEditor().getLineHeight(), p.first.intervalEnd()); assertNull(p.second); }