void (String extPoint) { for (Map.Entry<String, Collection<Class<?>>> entry : myRestrictedDefinitions.entrySet()) { for (Class<?> typeClass : entry.getValue()) { final String elementName = entry.getKey(); if (!myNestedElementTypes.containsKey(elementName) && isAssignableFrom(extPoint, typeClass)) { myNestedElements.add(elementName); myNestedElementTypes.put(elementName, typeClass); break; } } } }