Without introducing the visiblity modifier, Java uses the closed area of ββthe package
Pay attention to the following article.
Edit: As mentioned in the comments, there is no way to mark the method as βfriendlyβ. But for your needs, a private package is enough.