if (element == null) {
throw new IllegalArgumentException("Element argument must not be null.");
}
final JFileChooser fc = new JFileChooser();
fc.setFileFilter(new BinFileFilter());
final File parentFile = loadedFile.getFile().getParentFile();
if (parent != null) {
fc.setCurrentDirectory(parentFile);