BuilderInfo (@NotNull PsiRecordComponent psiRecordComponent) { final BuilderInfo result = new BuilderInfo(); result.variableInClass = psiRecordComponent; result.deprecated = hasDeprecatedAnnotation(psiRecordComponent); result.fieldInBuilderType = psiRecordComponent.getType(); result.fieldInitializer = psiRecordComponent.getInitializer(); result.hasBuilderDefaultAnnotation = PsiAnnotationSearchUtil.isAnnotatedWith(psiRecordComponent, BUILDER_DEFAULT_ANNOTATION); result.fieldInBuilderName = psiRecordComponent.getName(); result.capitalizationStrategy = CapitalizationStrategy.defaultValue(); result.nullAnnotationLibrary = LombokNullAnnotationLibraryDefned.NONE; result.singularAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiRecordComponent, LombokClassNames.SINGULAR); result.builderElementHandler = SingularHandlerFactory.getHandlerFor(psiRecordComponent, null!=result.singularAnnotation); return result; }