public static String getClipboardString() {
      try {
         Transferable var0 = Toolkit.getDefaultToolkit().getSystemClipboard().getContents((Object)null);
         if(var0 != null && var0.isDataFlavorSupported(DataFlavor.stringFlavor)) {
            String var1 = (String)var0.getTransferData(DataFlavor.stringFlavor);
            return var1;
         }
      } catch (HeadlessException | UnsupportedFlavorException | IOException var2) {
      }

      return null;
   }