docs: private float[] getFabTranslationYForBottomNavigationBar(CoordinatorLayout parent,
                                                               FloatingActionButton fab) {
          float minOffset = 0;
          float viewHeight = 0;
          final List<View> dependencies = parent.getDependencies(fab);
          for (int i = 0, z = dependencies.size(); i < z; i++) {
              final View view = dependencies.get(i);
              if (view instanceof BottomNavigationBar) {
                  viewHeight = view.getHeight();
                  minOffset = Math.min(minOffset,
                          view.getTranslationY() - viewHeight);
              }
          }
  
          return new float[]{minOffset, viewHeight};
      }