ProblemHighlightType (NotNullContext context, boolean isInfoLevel) { if(context.myIsStream) { return ProblemHighlightType.GENERIC_ERROR_OR_WARNING; } if (isInfoLevel) { return ProblemHighlightType.INFORMATION; } return ProblemHighlightType.GENERIC_ERROR_OR_WARNING; }