IntelliJ version of code