DnDImage (@NotNull Tree tree, @NotNull @Nls String imageText) { Image image = DnDAwareTree.getDragImage(tree, imageText, null).getFirst(); return new DnDImage(image, new Point(-image.getWidth(null), -image.getHeight(null))); }