TextMateWeigh (@NotNull CharSequence scopeSelector, @NotNull TextMateScope scope) { TextMateSelectorParser parser = new TextMateSelectorParser(scopeSelector); TextMateSelectorParser.Node node = parser.parse(); if (node == null) { return TextMateWeigh.ZERO; } return node.weigh(scope); }