}
@NotNull
public List<FrameworkInstanceDefinition> getActiveFrameworkInstanceDefinitions() {
if (myActiveInstances == null) {
final FrameworkIntegratorRegistry registry = FrameworkIntegratorRegistry.getInstance();
myActiveInstances = ContainerUtil.filter(myInstances, new Condition<FrameworkInstanceDefinition>() {
@Override
public boolean value(FrameworkInstanceDefinition definition) {
return registry.findIntegratorByInstanceDefinition(definition) != null;
}
});
}
return myActiveInstances;
}