Connect to your WSL by using remote development. You may be prompted to install intellij for wsl. Do this.