String (NamedScriptableDefinition variable) { if (!(variable instanceof MatchVariableConstraint constraint)) { return ""; } final String text = constraint.getRegExp(); if (text.isEmpty()) { return constraint.isWithinHierarchy() ? SSRBundle.message("hierarchy.tooltip.message") : ""; } return SSRBundle.message("text.tooltip.message", constraint.isInvertRegExp() ? 1 : 0, text, constraint.isWholeWordsOnly() ? 1 : 0, constraint.isWithinHierarchy() ? 1 : 0); }