@Override
        public void compilationFinished(boolean aborted, int errors, int warnings, @NotNull CompileContext compileContext) {
          if (errors > 0) {
            context.message("Compilation FAILED.", getLine());
            CompilerMessage[] errorMessages = compileContext.getMessages(CompilerMessageCategory.ERROR);
            StringBuilder errorMessage = new StringBuilder("Errors happened during build: " + errors);
            for (CompilerMessage error : errorMessages) {
              errorMessage.append("\n").append(error);
            }
            context.message(errorMessage.toString(), getLine());
            spanRef.get().setAttribute("Errors", errors);
          }
          if (warnings > 0) {
            spanRef.get().setAttribute("Warnings", warnings);
          }
          connection.disconnect();
        }
@Override
        public void compilationFinished(boolean aborted, int errors, int warnings, @NotNull CompileContext compileContext)