if (parentStateList[i] != null) { parentStateList[i].set(); } else if (renderStateList[i] != null) { renderStateList[i].unset(); }
if(renderStateList[i] != null) { if (parentStateList[i] != null) { parentStateList[i].set(); } else { renderStateList[i].unset(); } }
    public void unsetStates() {        for (int i = 0; i < renderStateList.length; i++) {            if (parentStateList[i] != null) {                parentStateList[i].set();            } else if (renderStateList[i] != null) {                renderStateList[i].unset();            }        }    }