Mechanism of direct reactions at high energies