int (float startX, int startColumn, int column) { int visualColumnCount = getVisualColumnCount(startX); int logicalColumnCount = getLogicalColumnCount(startColumn); return column == logicalColumnCount ? visualColumnCount : Math.min(column, visualColumnCount - 1); }