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