CompilerMessageCategory (@NotNull final HighlightDisplayLevel severity, @NotNull final VirtualFile virtualFile, @NotNull final CompileContext context) { if (severity == HighlightDisplayLevel.ERROR) return CompilerMessageCategory.ERROR; if (severity == HighlightDisplayLevel.WARNING) return CompilerMessageCategory.WARNING; return CompilerMessageCategory.INFORMATION; }