String (@NotNull PsiClass psiClass, @NotNull PsiAnnotation psiAnnotation, @Nullable PsiMethod psiMethod) { final String builderClassName = PsiAnnotationUtil.getStringAnnotationValue(psiAnnotation, ANNOTATION_BUILDER_CLASS_NAME, ""); if (!StringUtil.isEmptyOrSpaces(builderClassName)) { return builderClassName; } String relevantReturnType = psiClass.getName(); if (null != psiMethod && !psiMethod.isConstructor()) { final PsiType psiMethodReturnType = psiMethod.getReturnType(); if (null != psiMethodReturnType) { relevantReturnType = PsiNameHelper.getQualifiedClassName(psiMethodReturnType.getPresentableText(), false); } } return getBuilderClassName(psiClass, relevantReturnType); }