Color (@NotNull Project project, @NotNull HighlightSeverity severity) { if (SeverityRegistrar.getSeverityRegistrar(project).compare(severity, HighlightSeverity.ERROR) >= 0) { return LightColors.RED; } if (SeverityRegistrar.getSeverityRegistrar(project).compare(severity, HighlightSeverity.WARNING) >= 0) { return LightColors.YELLOW; } return LightColors.GREEN; }