@NotNull
    @Override
    public Dimension getPreferredSize() {
      return myTextControlSize == null ? super.getPreferredSize() : myTextControlSize;
    }
@NotNull
    @Override
    public Dimension getPreferredSize()