sonar-plugin-server/src/main/java/jetbrains/buildserver/sonarplugin/manager/projectfeatures/SQSManagerProjectFeatures.java [85:102]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        doAddServer(toProject, newServer);
        return new SQSActionResult(null, newServer, "SonarQube Server '" + newServer.getName() + " added");
    }

    @NotNull
    @Override
    public synchronized SQSActionResult removeServer(@NotNull SProject project, @NotNull String serverId) {
        final Optional<SProjectFeatureDescriptor> found = findByServerId(project, serverId);
        if (found.isPresent() && project.removeFeature(found.get().getId()) != null) {
            final SQSInfoImpl old = new SQSInfoImpl(found.get());
            return new SQSActionResult(old, null, "SonarQube Server '" + old.getName() + "' removed");
        }
        return new SQSActionResult(null, null, "Cannot remove: SonarQube Server with id '" + serverId + "' doesn't exist");
    }

    @NotNull
    @Override
    public String getDescription() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sonar-plugin-server/src/main/java/jetbrains/buildserver/sonarplugin/sqrunner/manager/projectfeatures/SQSManagerEmptyTypeProjectFeatures.java [82:99]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        doAddServer(toProject, newServer);
        return new SQSActionResult(null, newServer, "SonarQube Server '" + newServer.getName() + " added");
    }

    @NotNull
    @Override
    public synchronized SQSActionResult removeServer(@NotNull SProject project, @NotNull String serverId) {
        final Optional<SProjectFeatureDescriptor> found = findByServerId(project, serverId);
        if (found.isPresent() && project.removeFeature(found.get().getId()) != null) {
            final SQSInfoImpl old = new SQSInfoImpl(found.get());
            return new SQSActionResult(old, null, "SonarQube Server '" + old.getName() + "' removed");
        }
        return new SQSActionResult(null, null, "Cannot remove: SonarQube Server with id '" + serverId + "' doesn't exist");
    }

    @NotNull
    @Override
    public String getDescription() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



