PsiCodeBlock () { String bodyAsText = myBodyAsText; Function<LombokLightMethodBuilder, String> builderBodyFunction = myBuilderBodyFunction; if (null == myBodyCodeBlock && (bodyAsText != null || builderBodyFunction != null)) { if (bodyAsText == null) { bodyAsText = builderBodyFunction.apply(this); } final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(getProject()); myBodyCodeBlock = elementFactory.createCodeBlockFromText("{" + bodyAsText + "}", this); myBodyAsText = null; myBuilderBodyFunction = null; } return myBodyCodeBlock; }