private static void setAbstract(JMods mods) {
    try {
      Method method = JMods.class.getDeclaredMethod("setFlag", int.class, boolean.class);
      method.setAccessible(true);
      method.invoke(mods, JMod.ABSTRACT, true);
    }
    catch (NoSuchMethodException e) {
      throw new GenerationException(e);
    }
    catch (InvocationTargetException e) {
      throw new GenerationException(e);
    }
    catch (IllegalAccessException e) {
      throw new GenerationException(e);
    }
  }
private static void setAbstract(JMods mods)