TextMateWeigh (@NotNull TextMateScope scope) { CharSequence scopeName = scope.getScopeName(); if (scopeName != null && (selector.isEmpty() || StringUtilRt.startsWith(scopeName, selector + ".") || StringUtilRt.equal(scopeName, selector, true))) { return new TextMateWeigh(BASE_WEIGH - scope.getDotsCount() + Strings.countChars(selector, '.'), TextMateWeigh.Priority.NORMAL); } return TextMateWeigh.ZERO; }