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