CustomizableAction (final List<? extends ActionDescriptor> actionDescriptors, final Class aClass) { for (ActionDescriptor actionDescriptor : actionDescriptors) { if (actionDescriptor.getClass().isAssignableFrom(aClass)) return (CustomizableAction)actionDescriptor; } return null; }