final Collection<PsiMethod> methodsToDelegate = collectAllMethods(fieldClass, objectClass);
if (!methodsToDelegate.isEmpty()) {
final PsiElementFactory elementFactory = JavaPsiFacade.getInstance(project).getElementFactory();
for (PsiMethod psiMethod : methodsToDelegate) {
LightMethod myLightMethod = generateDelegateMethod(psiClass, manager, elementFactory, psiMethod, fieldClassSubstitutor);
target.add((Psi) myLightMethod);
}
UserMapKeys.addGeneralUsageFor(psiField);
}
}