In our case, we only add it when we enable development utilities.
if (getApplication().getDebugSettings().isDevelopmentUtilitiesEnabled()) { add(new DebugBar("dev")); } else { add(new EmptyPanel("dev").setVisible(false)); }
The dependence is not so great, it is easy for us to resolve it in our production dependencies.
source share