public List<T> findClosestNeighbours(double x, double y, double radius, int maxCount) { NearestNeighborGatherer<T> gatherer = new NearestNeighborGatherer<>(x, y, radius, maxCount); if (root != null) { root.findNearestNeighbors(0, gatherer); } return gatherer.getResults(); }