* @param filename File to check.
* @param actionName Name of the Action to resolve to.
* @throws Throwable On errors.
*/
private void checkActionReference(@NonNls final String filename, @NonNls final String actionName) {
final PsiReference psiReference = myFixture.getReferenceAtCaretPositionWithAssertion(filename);
final PsiElement psiElement = psiReference.resolve();
assertNotNull("no resolve element " + actionName, psiElement);
assertTrue(psiElement instanceof XmlTag);
final DomElement actionElement = DomManager.getDomManager(getProject()).getDomElement((XmlTag)psiElement);
assertNotNull(actionElement);