@Override public void run(final AstNode compilationUnit) { final TypeDefinition currentType = _context.getCurrentType(); if (currentType.getCompilerTarget().hasClassLiterals()) { return; } final MethodDefinition classMethod = tryLocateClassMethod(currentType, compilationUnit); if (classMethod != null && classMethod.getDeclaringType() != null) { new Rewriter(_context, classMethod).run(compilationUnit); } }