Palladium-catalyzed heteroannulation leading to heterocyclic structures with two heteroatoms: a highly regio- and stereoselective synthesis of (Z)-4-alkyl-2-alkyl(aryl)idene-3,4-dihydro-2H-1,4-benzoxazines and (Z)-3-alkyl(aryl)idene-4-tosyl-3,4-dihydro-2H-1,4-benzoxazines.