How to get list of field in customfield settings?

For example i have some collection and my custom field in my plugin. I need to do something with chosen field, but first i need to get this field. I would like to get all fields and give the user possibility dynamically choose that field in custom field settings
On my screenshot its Relation field select. How i can get collection type fields (and current collection) there? Is there some events?

This topic has been created from a Discord post (1219405042038341653) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord