ParagraphListSeparator separator= new ParagraphListSeparator(list); String lead= hasExisting ? "" : separator.getSeparator(-1, insertIndent); return rewriteList(list, insertPos, lead, separator, insertIndent);
ParagraphListRewriter listRewriter= new ParagraphListRewriter(insertIndent); StringBuffer lead= new StringBuffer(); if (!hasExisting) { lead.append(fTextBuffer.getLineDelimiter()); lead.append(fTextBuffer.getLineDelimiter()); lead.append(CodeFormatterUtil.createIndentString(insertIndent)); } return listRewriter.rewriteList(list, insertPos, lead.toString());
	private int rewriteParagraphList(List list, int insertPos, int insertIndent) {		boolean hasChanges= false;		boolean hasExisting= false;				for (int i= 0; i < list.size(); i++) {			ASTNode elem= (ASTNode) list.get(i);			hasChanges |= isChanged(elem);			hasExisting |= !isInserted(elem);		}		if (!hasChanges) {			return visitList(list, insertPos);		}				ParagraphListSeparator separator= new ParagraphListSeparator(list);		String lead= hasExisting ? "" : separator.getSeparator(-1, insertIndent); //$NON-NLS-1$		return rewriteList(list, insertPos, lead, separator, insertIndent);	}