Giant planet
Solid planets up to thousands of Earth masses may be able to form around massive stars (B-type and O-type stars; 5–120 solar masses), where the protoplanetary disk would contain enough heavy elements. Also, these stars have high UV radiation and winds that could photoevaporate the gas in the disk, leaving just the heavy elements.