private void updateTagsPreview() {
    Project project = thumbnailView.getProject();
    boolean enabled = PropertiesComponent.getInstance(project).getBoolean(ToggleTagsPanelAction.TAGS_PANEL_VISIBLE, false);
    float splitterProportion = previewSplitter.getProportion();
    if (enabled) {
      if (splitterProportion == 1) {
        previewSplitter.setProportion(
          Float.parseFloat(PropertiesComponent.getInstance(project).getValue(ToggleTagsPanelAction.TAGS_PANEL_PROPORTION, "0.5f")));
      }
      if (tagsPanel == null) {
        tagsPanel = createTagPreviewPanel();
      }
      previewSplitter.setSecondComponent(tagsPanel);
    }
    else {
      if (splitterProportion != 1) {
        PropertiesComponent.getInstance(thumbnailView.getProject())
          .setValue(ToggleTagsPanelAction.TAGS_PANEL_PROPORTION, String.valueOf(splitterProportion));
      }
      previewSplitter.setProportion(1);
      previewSplitter.setSecondComponent(null);
    }
  }
private void updateTagsPreview()