if (indentFirstLine && line.trim().length() != 0) buffer.append(indent); else
if (indentFirstLine) {  String lineIndent= null; if (line.startsWith(COMMENT)) lineIndent= COMMENT + getIndentOfLine(line.substring(2)); else lineIndent= getIndentOfLine(line); String lineContent= line.substring(lineIndent.length());   if (lineContent.length() == 0) {  buffer.append(line);  } else { int indentSize= calculateDisplayedWidth(lineIndent); int deltaSize= newIndentSize - firstLineIndentSize; lineIndent= changePrefix(lineIndent.trim(), indentSize + deltaSize); buffer.append(lineIndent); buffer.append(lineContent); }  } else {
	private String format(String paragraph, String indent, String lineDelimiter, boolean indentFirstLine) {		final StringBuffer buffer= new StringBuffer();		for (final Iterator iterator= new LineIterator(paragraph); iterator.hasNext();) {			String line= (String) iterator.next();			if (indentFirstLine && line.trim().length() != 0)				buffer.append(indent);			else				indentFirstLine= true;			buffer.append(line);			if (iterator.hasNext())				buffer.append(lineDelimiter);		}		return buffer.toString();	}