protected String removeInlineAsm(String source) {
   // Hack to replace __asm blocks :
   String replaced =
       RegexUtils.regexReplace(
           asmPattern,
           source,
           new RegexUtils.Replacer() {
             public String replace(String[] groups) {
               int i = -1;
               StringBuilder b = new StringBuilder();
               for (char c : groups[0].toCharArray()) {
                 if (c == '\n') {
                   b.append(c);
                 }
               }
               return b.toString();
             }
           });
   return replaced;
 }