FileChooserDescriptor (final String extension) { return new FileChooserDescriptor(true, false, false, false, false, false).withFileFilter( file -> Comparing.equal(file.getExtension(), extension, file.isCaseSensitive())); }