void () { Rectangle visibleArea = myEditor.getScrollingModel().getVisibleArea(); if (visibleArea.isEmpty()) return; int width = myWidthProvider.getVisibleAreaWidth(); if (width <= 0) return; myAvailableWidth = width; }