private void validateFieldInitializers(ClassDeclaration classDeclaration,
ConstructorDeclaration errorSite) {
NodeList<ClassMember> members = classDeclaration.getMembers();
for (ClassMember member : members) {
if (member instanceof FieldDeclaration) {
FieldDeclaration fieldDeclaration = (FieldDeclaration) member;
if (!fieldDeclaration.isStatic()) {
for (VariableDeclaration variableDeclaration : fieldDeclaration.getFields().getVariables()) {
Expression initializer = variableDeclaration.getInitializer();
if (initializer != null) {
EvaluationResultImpl result = initializer.accept(new ConstantVisitor(typeProvider));
if (!(result instanceof ValidResult)) {
errorReporter.reportErrorForNode(