IntelliJ optimization