public int getSubComponentIndex(GUIComponent component) {
        if (!solidified) {
            return initSubComponents.indexOf(component);
        }

        for (int i = 0; i < subComponents.length; i++) {
            if (component == subComponents[i]) {
                return i;
            }
        }

        return -1;
    }