@DragonManu that should be covered in our wiki setup pages like https://github.com/MovingBlocks/Terasology/wiki/Preparing-an-Engine-Workspace but in short you need to define an available JDK inside IntelliJ, just once (that's an IntelliJ setup step, not so much Terasology)
Simply go to File ->...