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