Add compatible with 12.1 IntelliJ platform.

Due to API changes to get current editor and current project.