Yes, you are right.
My last paragraph has
Because we need to access the package-private variable,
mNestedScrollingChildRef
, we have to put ViewPagerBottomSheetBehavior inside packageandroid.support.design.widget
. That why I call the solution funny.
And this is the most trick way, I defined a class into the same package to access the package-private methods and parameters.