public static void selectRules ( JLanguageTool lt , List < String > disabledRuleIds , List < String > enabledRuleIds , boolean useEnabledOnly ) { Set < String > disabledRuleIdsSet = new HashSet <> ( ) ; disabledRuleIdsSet . addAll ( disabledRuleIds ) ; Set < String > enabledRuleIdsSet = new HashSet <> ( ) ; enabledRuleIdsSet . addAll ( enabledRuleIds ) ; selectRules ( lt , Collections . emptySet ( ) , Collections . emptySet ( ) , disabledRuleIdsSet , enabledRuleIdsSet , useEnabledOnly ) ; }
Enable and disable rules of the given LanguageTool instance .