Status (@NotNull Project project, @NotNull HighlightSeverity severity) { if (SeverityRegistrar.getSeverityRegistrar(project).compare(severity, HighlightSeverity.ERROR) >= 0) { return Status.Error; } if (SeverityRegistrar.getSeverityRegistrar(project).compare(severity, HighlightSeverity.WARNING) >= 0) { return Status.Warning; } return Status.Success; }