ASTNode insertBefore= getNodeToInsertTempDeclarationBefore(); int insertOffset= insertBefore.getStartPosition(); String text= createTempDeclarationSource() + getIndent(insertBefore); return SimpleTextEdit.createInsert(insertOffset, text);
if (getSelectedExpression().getParent() instanceof ExpressionStatement) return replaceSelectedExpressionWithTempDeclaration(); else return createAndInsertTempDeclaration();
	private TextEdit createTempDeclarationEdit() throws CoreException {		ASTNode insertBefore= getNodeToInsertTempDeclarationBefore();				int insertOffset= insertBefore.getStartPosition();		String text= createTempDeclarationSource() + getIndent(insertBefore);		return SimpleTextEdit.createInsert(insertOffset, text); 	}