boolean (@NotNull DataContext dataContext) { List<ConfigurationType> targetTypes = getTargetTypes(dataContext); return !targetTypes.isEmpty() || (myDelegate != null && myDelegate.canDeleteElement(dataContext)); }