public void propertyChange(PropertyChangeEvent evt) {
ToolWindowDescriptor window = (ToolWindowDescriptor) evt.getSource();
ToolWindowType windowType = window.getToolWindow().getType();
if (windowType == ToolWindowType.FLOATING || windowType == ToolWindowType.FLOATING_FREE) {
ToolWindowAnchor oldAnchor = (ToolWindowAnchor) evt.getOldValue();
ToolWindowAnchor newAnchor = (ToolWindowAnchor) evt.getNewValue();
PropertyChangeEvent avEvent = new PropertyChangeEvent(evt.getSource(), "available", true, false);
getBar(oldAnchor).propertyChange(avEvent);
syncPanel(oldAnchor);