private void selectTemplate(FileTemplate template) {
    Supplier<String> defDesc = null;
    if (currentTab == myTemplatesList) {
      defDesc = FileTemplateManagerImpl.getInstanceImpl(myProject).getDefaultTemplateDescription();
    }
    else if (currentTab == myIncludesList) {
      defDesc = FileTemplateManagerImpl.getInstanceImpl(myProject).getDefaultIncludeDescription();
    }
    if (editor.getTemplate() != template) {
      final boolean isInternal = template != null && isInternalTemplate(template.getName(), currentTab.getTitle());
      editor.setTemplate(template, defDesc, isInternal);
      editor.setShowAdjustCheckBox(myTemplatesList == currentTab);
    }
  }
private void selectTemplate(FileTemplate template)