Passing receivedEvent and triggeringItem as parameters to a lambda: which type to use?

Thanks!

Here’s the first rule I’ve created, with the intention to identify the class name of receivedEvent:
rule “sunset check”

rule "sunset check"
when
	   Channel "astro:sun:local:set#event" triggered
	or Channel "astro:sun:local:civilDusk#event" triggered
	or Channel "astro:sun:local:nauticDusk#event" triggered
	or Channel "astro:sun:local:astroDusk#event" triggered 
	or Channel "astro:sun:local:daylight#event" triggered
then
	val String ruleTitle="event::getCanonicalName()"
	logInfo( ruleTitle, "INFO: receivedEvent.class.getCanonicalName() --> [{}], Event = '{}'", receivedEvent.class.getCanonicalName(), receivedEvent.getEvent() )
end

I get:

2019-03-05 07:24:00.045 [INFO ] [del.script.event::getCanonicalName()] - INFO: receivedEvent.class.getCanonicalName() --> [org.eclipse.smarthome.core.thing.events.ChannelTriggeredEvent], Event channel 'astro:sun:local:daylight#event, Event = 'START'

I’m now importing org.eclipse.smarthome.core.thing.events.ChannelTriggeredEvent at the top of my rules definition, and now it appears I can use ChannelTriggeredEvent as type.