InnerFragmentsPolicy () { return switch (this) { case BY_WORD, BY_WORD_SPLIT -> InnerFragmentsPolicy.WORDS; case BY_CHAR -> InnerFragmentsPolicy.CHARS; case BY_LINE, DO_NOT_HIGHLIGHT -> InnerFragmentsPolicy.NONE; }; }