Make plugin type check more flexible (Fabric) (#20452)
* make plugin type check more flexible
* Change signature and make the equivalent changes to Fabric connector
---------
Co-authored-by: Jianing Yang <jed970610@gmail.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>