On a Possible Generalization of Quantum Mechanics