void (@NotNull ProcessEvent event) { // The process ends up with code 1 Type type = TypeToken.getParameterized(List.class, Result.class).getType(); Collection<Result> results = new Gson().fromJson(getOutput().getStdout(), type); if (results != null) response.set(new ShellcheckResponse(results, timestamp)); }