private ElementsChooser.ElementProperties createElementProperties(final T item) {
    return new ElementsChooser.ElementProperties() {
      @Override
      public @Nullable Icon getIcon() {
        return getItemIcon(item);
      }

      @Override
      public @Nullable @Nls String getLocation() {
        return getItemLocation(item);
      }

      @Override
      public @Nullable Color getBackgroundColor() {
        return getItemBackgroundColor(item);
      }
    };
  }
private ElementsChooser.ElementProperties createElementProperties(final T item)