Black holes are formed when energy is put in a small region of space, I was wondering if there is a threshold to how much energy should I add in a certain volume of space to get a black hole, I read about the Schwarzschild radius formula that tells us the radius of event horizon of black hole formed by a star of mass $M$. My question is that is there any relation between energy and volume of a region to form a black hole?
Can I use Einsteins Energy-mass equation to find the energy and substitute the value of mass in terms of energy in the formula of Schwarzschild radius so that I have a relation between radius of event horizon and energy contained in it and calculate volume accordingly?