The java diagnostic infer the function from the wrong class/interface.
IntelliJ works fine and doesn't report any issues.
The method setValue(int, int, int) from the type A is not visible
Minimal reproduction repository : https://github.com/ggjulio/vscode-java-diagnose-bug
see examples: