private static boolean isFileExist(@NotNull final String directory, @NotNull final String fileName) {
    return LocalFileSystem.getInstance().findFileByIoFile(new File(directory, fileName)) != null;
  }
private static boolean isFileExist(@NotNull final String directory, @NotNull final String fileName)