String (final int startOffset, final String value) { final StringBuilder result = new StringBuilder(); String offset = calcOffset(startOffset); final String[] imports = value.split(","); if (imports.length >=1) { result.append(imports[0]); for (int i = 1; i < imports.length; i++) { String anImport = imports[i]; result.append(','); result.append('\n'); result.append(offset); result.append(anImport.trim()); } } return result.toString(); }