While the pie is baking, prepare the filling. Fry mushrooms with onions in a frying pan, salt and pepper (do not salt, we have hard cheese in the recipe) fry until the liquid evaporates.
Chop the mushrooms and grind them in a blender, add cheese, melted cheese, sour cream, salt, pepper to taste.