Plugin creation: How to get list of fields?

I need get all available fields in component to put them into select inside base options


there is in Relation field i should choose one field but i cant find anywhere info about how to get fields.