Uninstalling the VS Code extension "Java Platform Extension for Visual Studio Code" by Oracle & using the extension "Language support for Java ™ for VS Code by Red Hat solved it for me.