GlassPanel glassPane = descriptor.getManager().getGlassPanel();
if (previewPanel != null)
glassPane.remove(previewPanel);
previewPanel = new TranslucentPanel(new ExtendedTableLayout(new double[][]{{2, TableLayout.FILL, 2}, {2, TableLayout.FILL, 2}}));
previewPanel.setAlphaModeRatio(dockedTypeDescriptor.getPreviewTransparentRatio());
previewPanel.setSize(width + 4, height + 4);
Container mainContainer = descriptor.getManager();
switch (descriptor.getToolWindow().getAnchor()) {