Fix the patch files for IDEA.