PsiAnnotation (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation) { final StringBuilder parameters = new StringBuilder(); final String setterPrefix = getSetterPrefix(psiAnnotation); parameters.append("withPrefix=\""); parameters.append(setterPrefix); parameters.append('"'); parameters.append(','); final String buildMethodName = getBuildMethodName(psiAnnotation); parameters.append("buildMethodName=\""); parameters.append(buildMethodName); parameters.append('"'); return JavaPsiFacade.getElementFactory(psiClass.getProject()) .createAnnotationFromText('@' + JACKSON_DATABIND_ANNOTATION_JSON_POJOBUILDER + "(" + parameters + ")", psiClass); }