if (providerName.endsWith("Provider")) {
providerName = StringUtil.substring(providerName, 0, -8);
}
}
ProviderDefinition providerDefinition;
if (Modifier.isStatic(method.getModifiers())) {
providerDefinition = new ProviderDefinition(providerName, method);
} else {
providerDefinition = new ProviderDefinition(providerName, beanDefinition.getName(), method);
}
list.add(providerDefinition);
}