LightTypeParameterBuilder (LombokLightMethodBuilder method, int index, PsiTypeParameter psiClassTypeParameter) { final String nameOfTypeParameter = StringUtil.notNullize(psiClassTypeParameter.getName()); final LightTypeParameterBuilder result = new LightTypeParameterBuilder(nameOfTypeParameter, method, index); final LightReferenceListBuilder resultExtendsList = result.getExtendsList(); for (PsiClassType referencedType : psiClassTypeParameter.getExtendsList().getReferencedTypes()) { resultExtendsList.addReference(referencedType); } return result; }