void (int line, int column, boolean isVisible) { LogicalPosition position = getEditor().getCaretModel().getLogicalPosition(); assertEquals(line, position.line); assertEquals(column, position.column); Point caretXY = getEditor().logicalPositionToXY(position); assertEquals(isVisible, getEditor().getScrollingModel().getVisibleAreaOnScrollingFinished().contains(caretXY)); }