Detect if a plugin is currently viewed in "Add panel" -> "Choose visualisation"

Hi everybody. I have the following question:

Is it possible to detect within the JavaScript plugin controller if the plugin is currently being viewed in the “Add panel” -> “Choose visualisation” page and not as already added panel in a dashboard?

Thanks!