@Override
    public boolean accept(final File f) {
      boolean accept = false;
      final String filenameLower = f.getName().toLowerCase();

      for (final String ext : fileExtensions) {
        accept = filenameLower.endsWith(ext.toLowerCase());
        if (accept) {
          break;
        }
      }

      return accept || f.isDirectory();
    }
Whether to ask for an existing file to be overwritten. Only makes sense in dialogs of type
<code>JFileChooser.SAVE_DIALOG</code> or <code>JFileChooser.CUSTOM_DIALOG</code>.

@see JFileChooser#setDialogType(int)
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/CFileChooser.java