class SlotNode extends AbstractNode {

    private final Query parent;

    public SlotNode(Query parent) {
        super(Children.LEAF);
        this.parent = parent;
        setIconBaseWithExtension("DesktopFilters/drop.png");
        setShortDescription(NbBundle.getMessage(SlotNode.class, "SlotNode.description"));
    }

    @Override
    public String getHtmlDisplayName() {
        return NbBundle.getMessage(SlotNode.class, "SlotNode.name");
    }

    @Override
    public Action[] getActions(boolean context) {
        return new Action[0];
    }

    @Override
    public PasteType getDropType(final Transferable t, int action, int index) {<FILL_FUNCTION_BODY>}
}

        final Node dropNode = NodeTransfer.node(t, DnDConstants.ACTION_COPY_OR_MOVE);
        if (dropNode != null && dropNode instanceof QueryNode) {
            Query q = ((QueryNode) dropNode).getQuery();
            if (!Arrays.asList(q.getDescendantsAndSelf()).contains(parent)) { //Check if not parent
                return new PasteType() {

                    @Override
                    public Transferable paste() throws IOException {
                        QueryNode queryNode = (QueryNode) dropNode;
                        FilterController filterController = Lookup.getDefault().lookup(FilterController.class);
                        filterController.setSubQuery(parent, queryNode.getQuery());
                        return null;
                    }
                };
            }
        } else if (t.isDataFlavorSupported(FilterBuilderNode.DATA_FLAVOR)) {
            return new PasteType() {

                @Override
                public Transferable paste() throws IOException {
                    try {
                        FilterBuilder builder = (FilterBuilder) t.getTransferData(FilterBuilderNode.DATA_FLAVOR);
                        FilterController filterController = Lookup.getDefault().lookup(FilterController.class);
                        Query query = filterController.createQuery(builder);
                        filterController.setSubQuery(parent, query);
                    } catch (UnsupportedFlavorException ex) {
                        Exceptions.printStackTrace(ex);
                    }

                    return null;
                }
            };
        }
        return null;
    
<no_super_class>