public static void forEachIfPlayer(Iterable<Object> objects, Consumer<Player> consumer) {
        for (Object o : objects) {
            if (o instanceof Player) {
                consumer.accept(((Player) o));
            }
        }
    }
Applies an action to each object in the iterable, if it is a player.

@param objects the objects to iterate
@param consumer the action to apply
helper/src/main/java/me/lucko/helper/utils/Players.java