boolean (final @NotNull Transferable transferable) { if (transferable.isDataFlavorSupported(gnomeFileListFlavor)) { try { final Object transferData = transferable.getTransferData(gnomeFileListFlavor); final String content = FileUtil.loadTextAndClose((InputStream)transferData); return content.startsWith("cut\n"); } catch (Exception ignored) { } } else if (transferable.isDataFlavorSupported(kdeCutMarkFlavor)) { return true; } return false; }