private static Adapter unwrapAdapter(Adapter adapter) {
        return adapter instanceof WrapperListAdapter
                ? unwrapAdapter(((WrapperListAdapter) adapter).getWrappedAdapter())
                : adapter;
    }
private static Adapter unwrapAdapter ( Adapter adapter ) { return adapter instanceof WrapperListAdapter ? unwrapAdapter ( ( ( WrapperListAdapter ) adapter ) . getWrappedAdapter ( ) ) : adapter ; }
Unwraps any {@link android.widget.WrapperListAdapter}, commonly {@link
android.widget.HeaderViewListAdapter}.