void (@NotNull PsiTypeParameterListOwner listOwner, @NotNull PsiTypeParameterListOwner resultOwner) { final PsiTypeParameterList resultOwnerTypeParameterList = resultOwner.getTypeParameterList(); if (null != resultOwnerTypeParameterList) { final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(resultOwner.getProject()); for (PsiTypeParameter typeParameter : listOwner.getTypeParameters()) { String typeParameterAsString = getTypeParameterAsString(typeParameter); resultOwnerTypeParameterList.add(elementFactory.createTypeParameterFromText(typeParameterAsString, resultOwner)); } } }