The collapse condition for non-rotating object is g_00 = 0. The structure of this value is determined by concrete model of collapsing object. The value of g_00 is calculated by means of field equations. The right part of these equations must include energy-momentum tensor describing inner structure of collapsing object. The right part of equations can consist from different energy-momentum tensor if you want take to account electromagnetic field or other effects.