void (@NotNull Project project, @NotNull Consumer<? super List<VirtualFile>> consumer) { final FileChooserDescriptor fileChooserDescriptor = new FileChooserDescriptor(true, false, false, false, false, true) { @Override public boolean isFileSelectable(@Nullable VirtualFile file) { return file != null && extensionEquals(file.getPath(), "dic"); } }; final var directory = ProjectUtil.guessProjectDir(project); FileChooser.chooseFiles(fileChooserDescriptor, project, this.getParent(), directory, consumer); }