boolean () { if (myCurrentProcessor != null) { if (myCurrentProcessor.cancelOperation()){ myCurrentProcessor = null; myEditor.getLayeredPane().setCursor(Cursor.getDefaultCursor()); myEditor.getActiveDecorationLayer().removeFeedback(); return true; } } else if (PaletteToolWindowManager.getInstance(myEditor).getActiveItem(ComponentItem.class) != null) { cancelPaletteInsert(); return true; } return false; }