Declare Event
An error is triggered when using an event which does not exist.
Place the editor cursor on the error’s line and press Ctrl+1, select Declare event … from the list of quick fix proposals and press Enter.
The event is declared in the appropriate scope.