01 - Preheat oven to 400°F. Position rack in the center.
02 - Heat olive oil in a large oven-safe skillet or Dutch oven over medium heat. Add onion and sauté until softened, about 3 minutes.
03 - Add sliced mushrooms and cook until golden brown with most moisture evaporated, about 6 minutes.
04 - Stir in minced garlic and cook for 1 minute until fragrant. Add drained white beans and toss to combine.
05 - Sprinkle in smoked paprika, ground cumin, chili flakes, salt, and pepper. Mix thoroughly to evenly coat all ingredients.
06 - Pour in vegetable broth and bring to a simmer. Cook for 5 minutes, allowing flavors to meld and liquid to slightly reduce.
07 - Reduce heat to low. Stir in heavy cream and cream cheese. Cook gently for about 3 minutes until the sauce is smooth and well-blended. Adjust seasoning to taste.
08 - In a small mixing bowl, combine shredded cheddar, panko breadcrumbs, chopped parsley, chives or thyme, and melted butter or olive oil. Toss until evenly mixed.
09 - Sprinkle the cheddar herb topping evenly across the surface of the bean and mushroom mixture.
10 - Transfer skillet to the oven and bake for 15 minutes until the topping is golden brown and bubbling.
11 - Remove from oven and let rest for 5 minutes before serving. This allows the sauce to thicken slightly.