How to remove black icons (Lock Screen, Log Out, Power Off, Suspend, Switch User) from GNOME Dash?

When I use search on Ubuntu 18.04 LTS with GNOME Shell I see the following icons among others:

Power Off, Lock Screen, Log Out, Suspend

Switch User

How can I hide them? Are they hard-coded somewhere?

Note: this question is not duplicate of "How do I remove, log out, reboot and shut down from here?" asked today, as icons are black (not gray). It is logical continuation of it, but not duplicate.


Solution 1:

Here is the gnome-shell-extension Hide System Actions that will hide the below entries from Gnome's overview search..

enter image description here

enter image description here