void (final Project project, final PsiElement[] elements, final PsiElement targetContainer, @Nullable final MoveCallback callback) { if (!LOG.assertTrue(targetContainer == null || targetContainer instanceof PsiDirectory || targetContainer instanceof PsiDirectoryContainer, "container: " + targetContainer + "; elements: " + Arrays.toString(elements) + "; working handler: " + toString())) { return; } final PsiElement[] adjustedElements = adjustForMove(project, elements, targetContainer); if (adjustedElements != null) { MoveFilesOrDirectoriesUtil.doMove(project, adjustedElements, new PsiElement[] {targetContainer}, callback); } }