private static GrIfStatement getElseIf(GrIfStatement ifStatement) {
    final GrStatement elseBranch = ifStatement.getElseBranch();
    if (elseBranch == null) return null;

    if (elseBranch instanceof GrIfStatement) {
      return (GrIfStatement)elseBranch;
    }
    else {
      return null;
    }
  }
private static GrIfStatement getElseIf(GrIfStatement ifStatement)