boolean (@NotNull PyExpression callee, @NotNull PyClassType classType, @NotNull TypeEvalContext context) { final PyClassType dictType = PyBuiltinCache.getInstance(callee.getContainingFile()).getDictType(); final var calleeType = PyUtil.as(context.getType(callee), PyClassType.class); return dictType != null && calleeType != null && classType.getPyClass() == dictType.getPyClass() && calleeType.getPyClass() == dictType.getPyClass() && calleeType.isDefinition(); }