private static void deleteSelectedElseIf(GrIfStatement selectedBranch, Context context) throws IncorrectOperationException {
    GrIfStatement parentIf = (GrIfStatement)selectedBranch.getParent();
    GrStatement childElse = selectedBranch.getElseBranch();

    if (childElse == null) {
      context.delete(selectedBranch);
      return;
    }

    context.setElseBranch(parentIf, childElse);
  }
private static void deleteSelectedElseIf(GrIfStatement selectedBranch, Context context)