TextMateWeigh (@NotNull TextMateScope scope) { TextMateWeigh result = TextMateWeigh.ZERO; for (Node child : children) { TextMateWeigh weigh = child.weigh(scope); if (weigh.compareTo(result) > 0) { result = weigh; } } return result; }