class DefaultSettingsDecrypter implements SettingsDecrypter {
    private final SecDispatcher securityDispatcher;

    @Inject
    public DefaultSettingsDecrypter(@Named("maven") SecDispatcher securityDispatcher) {
        this.securityDispatcher = securityDispatcher;
    }

    @Override
    public SettingsDecryptionResult decrypt(SettingsDecryptionRequest request) {<FILL_FUNCTION_BODY>}

    private String decrypt(String str) throws SecDispatcherException {
        return (str == null) ? null : securityDispatcher.decrypt(str);
    }
}

        List<SettingsProblem> problems = new ArrayList<>();

        List<Server> servers = new ArrayList<>();

        for (Server server : request.getServers()) {
            server = server.clone();

            try {
                server.setPassword(decrypt(server.getPassword()));
            } catch (SecDispatcherException e) {
                problems.add(new DefaultSettingsProblem(
                        "Failed to decrypt password for server " + server.getId() + ": " + e.getMessage(),
                        Severity.ERROR,
                        "server: " + server.getId(),
                        -1,
                        -1,
                        e));
            }

            try {
                server.setPassphrase(decrypt(server.getPassphrase()));
            } catch (SecDispatcherException e) {
                problems.add(new DefaultSettingsProblem(
                        "Failed to decrypt passphrase for server " + server.getId() + ": " + e.getMessage(),
                        Severity.ERROR,
                        "server: " + server.getId(),
                        -1,
                        -1,
                        e));
            }

            servers.add(server);
        }

        List<Proxy> proxies = new ArrayList<>();

        for (Proxy proxy : request.getProxies()) {
            try {
                proxy.setPassword(decrypt(proxy.getPassword()));
            } catch (SecDispatcherException e) {
                problems.add(new DefaultSettingsProblem(
                        "Failed to decrypt password for proxy " + proxy.getId() + ": " + e.getMessage(),
                        Severity.ERROR,
                        "proxy: " + proxy.getId(),
                        -1,
                        -1,
                        e));
            }

            proxies.add(proxy);
        }

        return new DefaultSettingsDecryptionResult(servers, proxies, problems);
    
<no_super_class>