void (@NotNull PsiReturnStatement statement) { // has to change method return type corresponding to new value type super.visitReturnStatement(statement); final PsiElement method = PsiTreeUtil.getParentOfType(statement, PsiMethod.class, PsiLambdaExpression.class); final PsiExpression value = statement.getReturnValue(); if (method != null && value != null) { if (method instanceof PsiLambdaExpression) { //todo [IDEA-133097] return; } final PsiType returnType = ((PsiMethod)method).getReturnType(); final PsiType valueType = myTypeEvaluator.evaluateType(value); if (returnType != null && valueType != null) { if ((isGetter(value, method) || !TypeConversionUtil.isAssignable(returnType, valueType)) && returnType.equals(myTypeEvaluator.getType(method)) && !myLabeler.addMigrationRoot(method, valueType, myStatement, false, true)) { myLabeler.convertExpression(value, valueType, returnType, false); } } } }