IntelliJ seems to constantly complain about "Unresolved variable" for JavaScript.
For example, in
document.getElementById('myId').onclick = async event => {
if (event.target.classList.contains...
it will underline classList
with a warning "Unresolved variable classList"
classList is a well defined property. But an EventTarget could in theory be other things. Is there a "right" way to code or annotate it such that IntelliJ doesn't complain?