See #23307 for reason of this PR.

I removed the check, whether a bean is already in the skippedBeanMethods collection. This collection only stores the method name, which leads to the undesired behavior as mentioned in #23307.

After this change, bean methods are only skipped, if they are annotated with a condition which evaluates to false.

Comment From: snicoll

Thanks for the PR but I don't think that we should be merging this. This would ignore the original problem that the same bean definition is registered twice. See https://github.com/spring-projects/spring-framework/issues/23307#issuecomment-1257761033