However in a plain IntelliJ project it's possible to get that library from Maven Central almost without hassle:
- Open project structure
- In the "Modules" page select a module which you use as a context of the scratch file (I suppose there will be just one module).
- Switch to "Dependencies" tab and hit the plus button.
- then in a context menu select "Library" -> "From Maven"