class ConfigKeyImpl implements Config.Key {

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ConfigKeyImpl key = (ConfigKeyImpl) o;
        return Objects.equals(name, key.name)
                && Objects.equals(parent, key.parent);
    }

    private  ConfigKeyImpl(ConfigKeyImpl parent, String name);

}