boolean (PsiMethodCallExpression methodCallExpression, String... classNames) { final PsiMethod method = methodCallExpression.resolveMethod(); if (method == null) { return false; } final PsiClass containingClass = method.getContainingClass(); if (containingClass == null) { return false; } final String qualifiedName = containingClass.getQualifiedName(); return ArrayUtil.contains(qualifiedName, classNames); }