public static boolean canDeleteNonPhysicalFile(@NotNull PsiFile file) {
    return !file.isPhysical() && file.getUserData(NON_PHYSICAL_FILE_DELETE_HANDLER) != null;
  }
public static boolean canDeleteNonPhysicalFile(@NotNull PsiFile file)