Project project = psiClass.getProject();
PsiManager manager = psiClass.getContainingFile().getManager();
final PsiElementFactory psiElementFactory = JavaPsiFacade.getElementFactory(project);
PsiType psiLoggerType = psiElementFactory.createTypeFromText(loggerType, psiClass);
LombokLightFieldBuilder loggerField = LombokPsiElementFactory.getInstance().createLightField(manager, loggerName, psiLoggerType)
.withContainingClass(psiClass)
.withModifier(PsiModifier.FINAL).withModifier(PsiModifier.STATIC).withModifier(PsiModifier.PRIVATE)
.withNavigationElement(psiAnnotation);
final String classQualifiedName = psiClass.getQualifiedName();
final String className = null != classQualifiedName ? classQualifiedName : psiClass.getName();
PsiExpression initializer = psiElementFactory.createExpressionFromText(String.format(loggerInitializer, className), psiClass);
loggerField.setInitializer(initializer);
target.add((Psi) loggerField);
}