String (@NotNull String expression, int maxLength) { expression = expression.replaceAll("\\s", "").replaceAll(",", ", "); if (expression.length() < maxLength) return expression; if (expression.isEmpty()) return "qualifier"; return StringUtil.shortenTextWithEllipsis(expression, maxLength - 8, 5, THREE_DOTS); }