public boolean allowAdd(@NotNull Resource contextResource, @NotNull String configName) {
    return serviceResolver.resolveAll(ConfigurationEditorFilter.class, contextResource).getServices()
        .filter(filter -> !filter.allowAdd(configName))
        .count() == 0;
  }
public boolean allowAdd ( @ NotNull Resource contextResource , @ NotNull String configName ) { return serviceResolver . resolveAll ( ConfigurationEditorFilter . class , contextResource ) . getServices ( ) . filter ( filter -> ! filter . allowAdd ( configName ) ) . count ( ) == 0 ; }
Allow to add configurations with this name in the configuration editor.
@param contextResource Content resource
@param configName Configuration name
@return if true, the configuration is offered in the "add configuration" dialog