private static void addBrowseListener(TextFieldWithBrowseButton withBrowseButton, String extension, Project project) {
    withBrowseButton.addBrowseFolderListener(JavaFXBundle.message("javafx.application.icons.select.icon.file.title"),
                                             JavaFXBundle.message("javafx.application.icons.select.icon.file.description",extension), project,
                                             FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()
                                               .withFileFilter(file -> extension.equalsIgnoreCase(file.getExtension())));
  }
private static void addBrowseListener(TextFieldWithBrowseButton withBrowseButton, String extension, Project project)