boolean (@Nullable PsiMethod method) { if (method == null) return false; if (ConstructionUtils.isCollectionConstructor(method)) { PsiClass aClass = method.getContainingClass(); if (aClass != null) { String name = aClass.getQualifiedName(); return name != null && name.startsWith("java.util.") && (InheritanceUtil.isInheritor(aClass, JAVA_UTIL_COLLECTION) || InheritanceUtil.isInheritor(aClass, JAVA_UTIL_MAP)); } } return NO_PARAMETER_LEAK_METHODS.methodMatches(method); }