boolean (final PsiElement targetElement, PsiElement[] sources) { for (PsiElement source : sources) { if (JavaMoveClassesOrPackagesHandler.invalid4Move(source)) return false; } return targetElement instanceof PsiClass && !(targetElement instanceof PsiAnonymousClass); }