CopyPasteSupport (@NotNull JComponent source) { String key = "NavBarPanel.copyPasteDelegator"; Object result = source.getClientProperty(key); if (!(result instanceof CopyPasteSupport)) { source.putClientProperty(key, result = new CopyPasteDelegator(myProject, source)); } return (CopyPasteSupport)result; }