No detectable N-methyltransferase activity. 7-methylxanthine + S-adenosyl-L-methionine = H(+) + S-adenosyl-L-homocysteine + theobromine Binds 1 Mg(2+) ion per subunit. Belongs to the methyltransferase superfamily. Type-7 methyltransferase family.