ProblemHighlightType (@NotNull MessageFormatUtil.MessageFormatErrorType type) { if (type.getSeverity() == MessageFormatUtil.ErrorSeverity.WARNING || type.getSeverity() == MessageFormatUtil.ErrorSeverity.WEAK_WARNING) { return ProblemHighlightType.WEAK_WARNING; } return null; }