@NotNull
@Override
public PsiReference[] getReferencesByElement(@NotNull final PsiElement psiElement,
@NotNull final ProcessingContext processingContext) {
final Result result = (Result)DomUtil.getDomElement(psiElement);
assert result != null : psiElement.getText();
final Action action = result.getParentOfType(Action.class, true);
assert action != null : psiElement.getText();
final PsiClass actionClass = action.searchActionClass();
if (actionClass == null) {
return PsiReference.EMPTY_ARRAY;
}
final int tagValueStartOffset = ElementManipulators.getOffsetInElement(result.getXmlTag());
PsiReference[] references = new PsiReference[1];
final String stringValue = result.getStringValue();
if (!StringUtil.isNotEmpty(stringValue)) {
return PsiReference.EMPTY_ARRAY;
}
final String resultText = StringUtil.replace(stringValue, "&", "&");