void (String extPoint, Map<String, Class<?>> definitions) { for (Map.Entry<String, Class<?>> entry : definitions.entrySet()) { final Class taskClass = entry.getValue(); if (isAssignableFrom(extPoint, taskClass)) { final String elementName = entry.getKey(); myNestedElements.add(elementName); myNestedElementTypes.put(elementName, taskClass); } } }