docs: public int getEndPosition(Tree node) {
      JCCompilationUnit compilationUnit = (JCCompilationUnit) getPath().getCompilationUnit();
      if (compilationUnit.endPositions == null) {
        return -1;
      }
      return ((JCTree) node).getEndPosition(compilationUnit.endPositions);
    }