void (@NotNull DocumentEvent event) { // force population of text layout cache on document update // this can be done by editor implementation in real life, // but we're doing it manually here to cover more potential cases getEditor().visualPositionToXY(new VisualPosition(0, 10)); }