I will summarize Java inner classes for myself.
--It is necessary to separate them as separate classes, but when calling from only one specific class, it is meaningful to clearly indicate that the caller is only an external class by defining it in that class. ――If you bother to separate packages, the number of class files will increase and readability will decrease, so it makes sense to avoid that.