Fixed #4. Added support of idea 12.