boolean (PyCallable callable, PsiElement anchor) { final String name = callable.getName(); final PyBuiltinCache cache = PyBuiltinCache.getInstance(anchor); if ("getattr".equals(name) && cache.isBuiltin(callable)) { return true; } else if ("get".equals(name) || "pop".equals(name)) { final PyFunction method = callable.asMethod(); final PyClassType dictType = cache.getDictType(); if (method != null && dictType != null && method.getContainingClass() == dictType.getPyClass()) { return true; } } return false; }