float (int column) { LineLayout layout = myView.getFoldRegionLayout(myFoldRegion); for (LineLayout.VisualFragment fragment : layout.getFragmentsInVisualOrder(0)) { if (column <= fragment.getEndVisualColumn()) { return fragment.visualColumnToX(column); } } return getFoldRegionWidthInPixels(); }