@Override
  public RefactoringElementListener getListener(PsiElement element) {
    if (!(element instanceof PsiQualifiedNamedElement) && !(element instanceof PsiDirectory)) return null;

    final PsiFile containingFile = element.getContainingFile();

    RefactoringElementListenerComposite composite = new RefactoringElementListenerComposite();
    registerListeners(element, composite, containingFile, ReferenceKind.FILE_PATH);
    registerListeners(element, composite, containingFile, ReferenceKind.QUALIFIED_NAME);

    return composite;
  }
@Override
  public RefactoringElementListener getListener(PsiElement element)