public @Nullable TextRange findOccurence(@NotNull CharSequence s, int offset) {
    String prefix = "$" + getName();
    int start = Strings.indexOf(s, prefix, offset);
    int next = start + prefix.length();
    if (start < 0 || next >= s.length()) return null;
    return getRangeForSuffix(s, start, next);
  }
public @Nullable TextRange findOccurence(@NotNull CharSequence s, int offset)