boolean (@NotNull PyExpression qualifier, @NotNull PyClassType qualifierType) { final List<? extends PsiElement> match = PyUtil.searchForWrappingMethod(qualifier, true); if (match == null) { return true; } if (match.size() > 1) { final PyClass ourClass = PyiUtil.getOriginalElementOrLeaveAsIs(qualifierType.getPyClass(), PyClass.class); final PsiElement theirClass = CompletionUtilCoreImpl.getOriginalOrSelf(match.get(match.size() - 1)); if (ourClass != theirClass) return true; } return false; }