question: private static Stream < Method > extractMethods ( Class clazz ) { try { Method [ ] methods = clazz . getMethods ( ) ; if ( methods . length > 0 ) { return Stream . of ( methods ) ; } } catch ( Exception | Error e ) { LOG . warn ( "Problems loading class at startup: {}" , clazz , e ) ; } return Stream . empty ( ) ; }
target:  Extract a set of methods from a given class.