static boolean canBeOpenedInEditor(PsiElement @NotNull [] elementsToMove) {
    for (PsiElement element : elementsToMove) {
      if (element.getContainingFile() != null) {
        return true;
      }
    }
    return false;
  }
static boolean canBeOpenedInEditor(PsiElement @NotNull [] elementsToMove)