GUI-337: Add utility function to show resource selector in policy generator only when it makes sense for a given action.