public @NotNull ConfigurationFactory getFactoryForType(@Nullable DeploymentSourceType<?> sourceType) {
    ConfigurationFactory result = null;
    if (sourceType instanceof SingletonDeploymentSourceType &&
        myServerType.getSingletonDeploymentSourceTypes().contains(sourceType)) {
      result = myPerTypeFactories.get(sourceType.getId());
    }
    if (result == null) {
      result = myMultiSourcesFactory;
    }
    assert result != null : "server type: " + myServerType.getId() + ", requested source type: " + sourceType;
    return result;
  }
public @NotNull ConfigurationFactory getFactoryForType(@Nullable DeploymentSourceType<?> sourceType)