Literally a .friend.MySharedClass package scheme. I personally find it perfectly normal for two modules of a project to share "impl". As you said the split package is a more acute problem.