class FieldStaticnessCorrector extends AbstractStaticnessCorrector {

  public FieldStaticnessCorrector(Singletons.Global g) {
  }

  public static FieldStaticnessCorrector v() {
    return G.v().soot_jimple_toolkits_scalar_FieldStaticnessCorrector();
  }

  @Override
  protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<FILL_FUNCTION_BODY>}
}

    // Some apps reference static fields as instance fields. We need to fix
    // this for not breaking the client analysis.
    for (Unit u : b.getUnits()) {
      if (u instanceof AssignStmt) {
        AssignStmt assignStmt = (AssignStmt) u;
        if (assignStmt.containsFieldRef()) {
          FieldRef ref = assignStmt.getFieldRef();
          // Make sure that the target class has already been loaded
          if (isTypeLoaded(ref.getFieldRef().type())) {
            try {
              if (ref instanceof InstanceFieldRef) {
                SootField fld = ref.getField();
                if (fld != null && fld.isStatic()) {
                  if (assignStmt.getLeftOp() == ref) {
                    assignStmt.setLeftOp(Jimple.v().newStaticFieldRef(ref.getField().makeRef()));
                  } else if (assignStmt.getRightOp() == ref) {
                    assignStmt.setRightOp(Jimple.v().newStaticFieldRef(ref.getField().makeRef()));
                  }
                }
              }
            } catch (ConflictingFieldRefException ex) {
              // That field is broken, just don't touch it
            }
          }
        }
      }
    }
  
<methods>public non-sealed void <init>() <variables>