protected List < Map < String , ? > > generateModifiers ( Set < String > modifiers ) { final List < Map < String , ? > > list = new ArrayList <> ( ) ; if ( ! modifiers . isEmpty ( ) ) { list . add ( pattern ( it -> { it . matches ( keywordRegex ( modifiers ) ) ; it . style ( MODIFIER_STYLE ) ; it . comment ( "Modifiers" ) ; //$NON-NLS-1$ } ) ) ; } return list ; }
Generate the rules for the modifier keywords .