if (fVariableKind == PARAM) { return doAddParam(cu); } else if (fVariableKind == FIELD || fVariableKind ==CONST_FIELD) { return doAddField(cu); } else { return doAddLocal(cu);
switch (fVariableKind) { case PARAM: return doAddParam(cu); case FIELD: case CONST_FIELD: return doAddField(cu); case LOCAL: return doAddLocal(cu); case ENUM_CONST: return doAddEnumConst(cu); default: throw new IllegalArgumentException("Unsupported variable kind: " + fVariableKind);
	protected ASTRewrite getRewrite() throws CoreException {		CompilationUnit cu= ASTResolving.findParentCompilationUnit(fOriginalNode);		if (fVariableKind == PARAM) {			return doAddParam(cu);		} else if (fVariableKind == FIELD || fVariableKind ==CONST_FIELD) {			return doAddField(cu);		} else { // LOCAL			return doAddLocal(cu);		}	}