boolean (@NotNull PyFile file, @NotNull TypeEvalContext context) { if (file instanceof PyTypedElement) { final PyType type = context.getType((PyTypedElement)file); if (type != null) { return resolveTypeMember(type, PyNames.GETATTR, context) != null; } } return false; }