private void addInitializersToConstructors(ASTRewrite rewrite) throws JavaModelException {
private void addInitializersToConstructors(ASTRewrite rewrite) throws CoreException {
    private void addInitializersToConstructors(ASTRewrite rewrite) throws JavaModelException {    	Assert.isTrue(! isDeclaredInAnonymousClass());    	TypeDeclaration typeDeclaration= (TypeDeclaration)getMethodDeclaration().getParent();    	MethodDeclaration[] allConstructors= getAllConstructors(typeDeclaration);    	if (allConstructors.length == 0){            addNewConstructorWithInitializing(rewrite, typeDeclaration);    	} else {    		for (int i= 0; i < allConstructors.length; i++) {                MethodDeclaration constructor= allConstructors[i];                if (shouldInsertTempInitialization(constructor))                    addFieldInitializationToConstructor(rewrite, constructor);            }    	}    }