void (@NotNull Map<PsiClass, Boolean> allClasses, @NotNull PsiClass psiClass, PsiElement... elementsToMove) { if (psiClass instanceof LightClass) return; final PsiClassOwner containingFile = (PsiClassOwner)psiClass.getContainingFile(); final PsiClass[] classes = containingFile.getClasses(); boolean all = true; for (PsiClass aClass : classes) { if (ArrayUtil.find(elementsToMove, aClass) == -1) { all = false; break; } } for (PsiClass aClass : classes) { allClasses.put(aClass, all); } }