boolean (DataFlavor @NotNull ... flavors) { Clipboard clipboard = getClipboard(); if (clipboard == null) return false; for (DataFlavor flavor : flavors) { if (clipboard.isDataFlavorAvailable(flavor)) { return true; } } return false; }