docs: protected CompilationProblem[] collectCompilerProblems() {
          if (this.errors.isEmpty()) {
              return null;
          } else {
              final CompilationProblem[] list = new CompilationProblem[this.errors.size()];
              this.errors.toArray(list);
              return list;
          }
      }