private static Optional < String > methodToCustomProperty ( Method m ) { return Optional . ofNullable ( m . getAnnotation ( FEELProperty . class ) ) . map ( a -> a . value ( ) ) ; }
If method m is annotated with FEELProperty will return FEELProperty . value otherwise empty .