Set<String> (@NotNull PyType type, @NotNull TypeEvalContext context) { if (type instanceof PyStructuralType) { return ((PyStructuralType)type).getAttributeNames(); } else if (type instanceof PyClassLikeType) { return ((PyClassLikeType)type).getMemberNames(true, context); } return null; }