Some IDEA autogeneration stuff