public ProblemDescriptor @NotNull [] getResultsArray() {
    List<ProblemDescriptor> problems = getResults();
    return problems.toArray(ProblemDescriptor.EMPTY_ARRAY);
  }
public ProblemDescriptor @NotNull [] getResultsArray()