List<HighlightPolicy> (@NotNull HighlightPolicy value) { if (value == HighlightPolicy.BY_WORD_SPLIT) { return Collections.singletonList(HighlightPolicy.BY_WORD); } if (value == HighlightPolicy.DO_NOT_HIGHLIGHT) { return Collections.singletonList(HighlightPolicy.BY_LINE); } return Collections.singletonList(HighlightPolicy.BY_WORD); }