boolean (PsiElement place) { for (PsiElement element : myElementsToMove) { if (element.getContainingFile() != null) { if (PsiTreeUtil.isAncestor(element, place, false)) return true; } } return false; }