public @Nullable TextRange getCurrentVariableRange() {
    int number = getCurrentSegmentNumber();
    if (number == -1) return null;
    return new TextRange(getSegments().getSegmentStart(number), getSegments().getSegmentEnd(number));
  }
public @Nullable TextRange getCurrentVariableRange()