private static boolean isInvalidated(@NotNull Path configurationFile, @NotNull BasicFileAttributes fileAttributes) throws IOException {
    if (!Registry.is("external.system.invalidate.storage", true)) return false;

    long lastModified = fileAttributes.lastModifiedTime().toMillis();
    if (lastModified == 0) {
      return true;
    }

    File brokenMarkerFile = getBrokenMarkerFile();
    if (brokenMarkerFile.exists() && lastModified < brokenMarkerFile.lastModified()) {
      Files.delete(configurationFile);
      return true;
    }
    return false;
  }
private static boolean isInvalidated(@NotNull Path configurationFile, @NotNull BasicFileAttributes fileAttributes)