boolean (@Nullable PsiMethodCallExpression methodCall) { if (methodCall != null) { String name = methodCall.getMethodExpression().getReferenceName(); if (name != null && name.startsWith("unmodifiable")) { PsiMethod method = methodCall.resolveMethod(); if (method != null && method.hasModifierProperty(PsiModifier.STATIC)) { PsiClass psiClass = method.getContainingClass(); if (psiClass != null && JAVA_UTIL_COLLECTIONS.equals(psiClass.getQualifiedName())) { return true; } } } } return false; }