Web API has Element interface which extends Node interface. How to tell JetBrains IDE that this particular Node is Element?
Hope the code below explains everything.