boolean (HighlighterIterator iterator, CharSequence chars) { if (iterator.getStart() >= iterator.getEnd() - 1 || chars.charAt(iterator.getEnd() - 1) != '\"' && chars.charAt(iterator.getEnd() - 1) != '\'') { return true; } return false; }