How to install OpenJDK to use in VSCode in Silverblue to code in Java

I installed (flatpak)OpenJDK and (flatpak)VSCode with the Debugger for Java extension, but VSCode doesn’t detect JDK, I followed the comment on top of this thread but it didn’t work, how could I be able to install JDK and use it in VSCode to be able to use Java?

Added vscode

Added java