class TreeMetaDataProvider {

  public Optional<Token> firstToken(TextRange textRange) {
    int textRangeIndex = indexOfFirstElement(sortedTokens, textRange);
    if (textRangeIndex == -1) {
      return Optional.empty();
    } else {
      return Optional.of(sortedTokens.get(textRangeIndex));
    }
  }

  public  TreeMetaDataProvider(List<Comment> comments, List<Token> tokens);

}