enclosingClass.getMethods(),
nameOfMethod,
methodName.getOffset());
methodName.setStaticElement(enclosingExecutable);
} else {
PropertyAccessorElement accessor = findIdentifier(enclosingClass.getAccessors(), methodName);
if (((KeywordToken) property).getKeyword() == Keyword.SET) {
accessor = accessor.getVariable().getSetter();
methodName.setStaticElement(accessor);
}
enclosingExecutable = accessor;
}
return super.visitMethodDeclaration(node);