Gravitational collapse and quantum mechanics