Is object defined an implicit in Scala REPL / spark shell

Can anyone help me understand, how can I identify if the object is declared as “implicit” in its scope or not.

I wanted to know if the spark object declared in Spark shell as
“Spark session available as ‘spark’.”
is implicit or not.

Note: I can test it by passing to any arbitrary function that takes implicit SparkSession parameter. But I want a concrete mechanism to know if the spark object is implicit.

Not sure what you actually want to achieve, but…

trait Foo

implicit val a: Foo = new Foo {}
val b: Foo = new Foo {}

implicitly[Foo] == a // true
implicitly[Foo] == b // false