If `panelsWithCurrentClass` is only used in the scope, let's declare it here.