Function getNonEmptyInterfaces