if (out == null) { throw new NullPointerException("Null palette."); } return out;
    protected Color[] getSelectedSubPalette()    {        return getAnimatedPalette(getCurrentScreen(), subPalSelector            .getSelectedIndex());    }