String text; int insertOffset; if(insertFirst()) { BodyDeclaration first = (BodyDeclaration) getBodyDeclarations().next(); insertOffset = first.getStartPosition(); text= createConstantDeclarationSource(getInitializerSource()) + getLineDelimiter() + getIndent(first);  } else { BodyDeclaration insertAfter = getNodeToInsertConstantDeclarationAfter(); Assert.isNotNull(insertAfter); insertOffset= insertAfter.getStartPosition() + insertAfter.getLength(); text= getLineDelimiter() + getIndent(insertAfter) + createConstantDeclarationSource(getInitializerSource()); }  return SimpleTextEdit.createInsert(insertOffset, text);
if(insertFirst()) return createInsertDeclarationFirstEdit(); else return createInsertDeclarationAfterEdit(getNodeToInsertConstantDeclarationAfter());
	private TextEdit createConstantDeclarationEdit() throws CoreException {				String text;		int insertOffset;		if(insertFirst()) {			BodyDeclaration first = (BodyDeclaration) getBodyDeclarations().next();			insertOffset = first.getStartPosition();			text= createConstantDeclarationSource(getInitializerSource()) + getLineDelimiter() + getIndent(first);		} else {			BodyDeclaration insertAfter = getNodeToInsertConstantDeclarationAfter();			Assert.isNotNull(insertAfter);			insertOffset= insertAfter.getStartPosition() + insertAfter.getLength(); 			text= getLineDelimiter() + getIndent(insertAfter) + createConstantDeclarationSource(getInitializerSource());		}				return SimpleTextEdit.createInsert(insertOffset, text);	}