diff --git a/java/typeMigration/src/com/intellij/refactoring/typeMigration/rules/guava/FluentIterableConversionUtil.java b/java/typeMigration/src/com/intellij/refactoring/typeMigration/rules/guava/FluentIterableConversionUtil.java index 4ec0e490543f..e661d394acb9 100644 --- a/java/typeMigration/src/com/intellij/refactoring/typeMigration/rules/guava/FluentIterableConversionUtil.java +++ b/java/typeMigration/src/com/intellij/refactoring/typeMigration/rules/guava/FluentIterableConversionUtil.java @@ -188,10 +188,13 @@ public class FluentIterableConversionUtil { PsiClass iterable, PsiClass collection) { if (retValue == null) return false; - final PsiType type = retValue.getType(); + PsiType type = retValue.getType(); if (PsiType.NULL.equals(type)) { return true; } + if (type instanceof PsiCapturedWildcardType) { + type = ((PsiCapturedWildcardType)type).getUpperBound(); + } if (type instanceof PsiClassType) { final PsiClass resolvedClass = ((PsiClassType)type).resolve();