boolean (PsiClass aClass) { if (aClass == null || aClass.isEnum() || aClass.isInterface() || aClass.isAnnotationType() || aClass.hasModifierProperty(PsiModifier.ABSTRACT)) { return false; } if (!InheritanceUtil.isInheritor(aClass, CommonClassNames.JAVA_UTIL_COLLECTION) && !InheritanceUtil.isInheritor(aClass, CommonClassNames.JAVA_UTIL_MAP)) { return false; } @NonNls final String name = aClass.getQualifiedName(); return name != null && name.startsWith("java.util."); }