Node upFromDecl = varDecl.getParent();
if (!(upFromDecl instanceof Block || upFromDecl instanceof TypeBody)) {
return;
}
for (VariableDefinitionEntry varDefEntry : varDef.astVariables()) {
if (upFromDecl instanceof Block) {
VariableDeclaration splitDecl = new VariableDeclaration().astDefinition(splitAndUnparentVariableDeclaration(varDef, varDefEntry));
((Block)upFromDecl).astContents().addBefore(varDecl, splitDecl);
}
else if (upFromDecl instanceof TypeBody) {