MyProcessingResult (String line) { final String type = LogConsolePreferences.getType(line); Key contentType = type != null ? LogConsolePreferences.getProcessOutputTypes(type) : (LogConsolePreferences.ERROR.equals(myPrevType) ? ProcessOutputTypes.STDERR : ProcessOutputTypes.STDOUT); if (type != null) { myPrevType = type; } final boolean applicable = isApplicable(line); return new MyProcessingResult(contentType, applicable, null); }