public static Being getClosestBeing(Point3 base, Collection<Being> beings, ConditionChecker checker) {
        if (beings.isEmpty()) {
            return null;
        }
        Being closest = null;
        double distance = 1000000.0;
        double tmp;
        for (Being being : beings) {
            if (checker.check(being)) {
                tmp = being.getPosition().minus(base).modulo();
                if (distance > tmp) {
                    distance = tmp;
                    closest = being;
                }
            }
        }
        return closest;
    }