protected boolean isValidFactoryMethod(final Method method) {
        final int modifiers = Modifier.getModifiers(method);
        return (modifiers & getMethodsIgnoreFilter()) == 0 && modifiers != getMethodsIgnoreSignature()
                && method.getReturnType() != void.class && method.getReturnType() != Void.class
                && !FORBIDDEN_METHOD_NAMES.contains(method.getName());
    }
protected boolean isValidFactoryMethod ( final Method method ) { final int modifiers = Modifier . getModifiers ( method ) ; return ( modifiers & getMethodsIgnoreFilter ( ) ) == 0 && modifiers != getMethodsIgnoreSignature ( ) && method . getReturnType ( ) != void . class && method . getReturnType ( ) != Void . class && ! FORBIDDEN_METHOD_NAMES . contains ( method . getName ( ) ) ; }
@param method cannot be synthetic, return void, have a forbidden name or have any filtered modifiers.
@return true if the method is valid and should be converted to a provider.