Porting to IDEA, part 1.