Problem of gravitational collapse in general relativity and some characteristics of magnetohydrodynamics