NodeList<CompilationUnitMember> declarations = node.getDeclarations();
int declarationCount = declarations.size();
for (int i = 0; i < declarationCount; i++) {
CompilationUnitMember declaration = declarations.get(i);
if (!(declaration instanceof ClassDeclaration)) {
declaration.accept(this);
}
}
for (int i = 0; i < declarationCount; i++) {
CompilationUnitMember declaration = declarations.get(i);
if (declaration instanceof ClassDeclaration) {