if (delegate.size() > 0){
CodeGenerationSettings settings =
JavaPreferencesSettings.getCodeGenerationSettings(src.getJavaProject());
settings.createComments = true;
return new AddDelegateMethodsOperation(
cu, delegate.toArray(new DelegateEntry[delegate.size()]),
sibling, settings, true, true);
}
return null;
}