if (propagatedElement != null) {
executableElement = propagatedElement;
} else {
if (leftHandSide instanceof Identifier) {
Identifier identifier = (Identifier) leftHandSide;
Element leftElement = identifier.getPropagatedElement();
if (leftElement instanceof ExecutableElement) {
executableElement = (ExecutableElement) leftElement;
}
}
if (leftHandSide instanceof PropertyAccess) {
SimpleIdentifier identifier = ((PropertyAccess) leftHandSide).getPropertyName();
Element leftElement = identifier.getPropagatedElement();
if (leftElement instanceof ExecutableElement) {
executableElement = (ExecutableElement) leftElement;
}
}
}