String (PsiClass resolvedClass) { if (InheritanceUtil.isInheritor(resolvedClass, CommonClassNames.JAVA_LANG_ITERABLE)) { return CommonClassNames.JAVA_LANG_ITERABLE; } if (InheritanceUtil.isInheritor(resolvedClass, CommonClassNames.JAVA_UTIL_ITERATOR)) { return CommonClassNames.JAVA_UTIL_ITERATOR; } if (InheritanceUtil.isInheritor(resolvedClass, CommonClassNames.JAVA_UTIL_STREAM_STREAM)) { return CommonClassNames.JAVA_UTIL_STREAM_STREAM; } return null; }