private static void convertPhpSink(@NotNull JsonWriter jsonWriter, @NotNull Element problem) throws IOException {
    jsonWriter.name("sink");
    Element sink = problem.getChild("sink");
    assert sink != null;
    jsonWriter.beginObject();
    jsonWriter.name("text").value(sink.getAttributeValue("text"));
    String sinkFqn = sink.getAttributeValue("fqn");
    if (sinkFqn != null) {
      jsonWriter.name("fqn").value(sinkFqn);
    }
    writeOrderAttribute(jsonWriter, sink);
    jsonWriter.name("vulnerabilities");
    jsonWriter.beginArray();
    Collection<String> vulnerabilityValues = getVulnerabilityValues(sink, "vulnerabilities");
    for (String vulnerability : vulnerabilityValues) {
      jsonWriter.value(vulnerability);
    }
    jsonWriter.endArray();
    jsonWriter.name("parameters");
    jsonWriter.beginArray();
    String parameterName = getParameterName(sink);
    if (parameterName != null) {
      jsonWriter.value(parameterName);
    }
    jsonWriter.endArray();
    jsonWriter.endObject();
  }
private static void convertPhpSink(@NotNull JsonWriter jsonWriter, @NotNull Element problem)