public static int indexOf(Object object, Object[] objects) {
        for (int i = 0; i < objects.length; i++) {
            if (objects[i] == object) {
                return i;
            }
        }

        return -1;
    }