void (@NotNull GrExpression expression, @NotNull PsiElement context, @NotNull PsiElement elementToHighlight) { if (hasTupleInitializer(expression)) return; final PsiType returnType = PsiImplUtil.inferReturnType(expression); if (returnType == null || PsiTypes.voidType().equals(returnType)) return; processAssignment(returnType, expression, elementToHighlight, "cannot.return.type", context, Position.RETURN_VALUE); }