PsiElement[] (PsiElement classToMove) { return PsiTreeUtil.collectElements(classToMove, element -> element instanceof PsiMember member && VisibilityUtil.getVisibilityModifier(member.getModifierList()).equals(PsiModifier.PACKAGE_LOCAL)); }