private static FunctionExprent unwrapNegations(FunctionExprent func) {
    while (func.getFuncType() == FunctionType.BOOL_NOT) {
      Exprent expr = func.getLstOperands().get(0);

      if (expr instanceof FunctionExprent) {
        func = (FunctionExprent) expr;
      } else {
        break;
      }
    }

    return func;
  }
Processes try catch statements to turns them into try-with-resources statements wherever possible.
Including the entire classpath is generally needed for this to work as it needs to know which classes implement AutoCloseable.

@author ForgeFlower devs, SuperCoder79
src/org/jetbrains/java/decompiler/modules/decompiler/TryWithResourcesProcessor.java