@Override
          protected Path compute(@NotNull ProgressIndicator indicator) throws IOException {
            indicator.setIndeterminate(true);
            var newFile = directory.resolve(name);
            NioFiles.createDirectories(newFile.getParent());
            var content = requireNonNullElse(e.getData(FileChooserKeys.NEW_FILE_TEMPLATE_TEXT), "");
            Files.writeString(newFile, content, StandardOpenOption.CREATE_NEW);
            return newFile;
          }
@Override
          protected Path compute(@NotNull ProgressIndicator indicator)