void (@Nullable PsiType targetType, @Nullable PsiType actualType, @NotNull PsiElement elementToHighlight) { if (targetType == null || actualType == null) return; final ConversionResult result = TypesUtil.canAssignWithinMultipleAssignment(targetType, actualType); if (result == ConversionResult.OK) return; registerError( elementToHighlight, GroovyBundle.message("cannot.assign", actualType.getPresentableText(), targetType.getPresentableText()), LocalQuickFix.EMPTY_ARRAY, result == ConversionResult.ERROR ? ProblemHighlightType.GENERIC_ERROR : ProblemHighlightType.GENERIC_ERROR_OR_WARNING ); }