code: private boolean createKnowledgeFolder(@Nonnull final File folder) {
      boolean result = false;
      if (PreferencesManager.getInstance().getPreferences().getBoolean(PreferencesPanel.PREFERENCE_KEY_KNOWLEDGEFOLDER_ALLOWED, true)) {
        final File knowledgeFolder = new File(folder, Context.KNOWLEDGE_FOLDER);
        if (knowledgeFolder.mkdirs()) {
          result = true;
        } else {
          LOGGER.warn("Can't create folder : " + Context.KNOWLEDGE_FOLDER); //NOI18N
        }
      }
      return result;
    }
docs: GEN-LAST:event_menuExitActionPerformed