`ArrayUtils.contains(pageTypes, component.getResourceType())` ?