@Override
  public PsiReference getReference() {
    PsiElement parent = getParent();
    if (parent instanceof PsiSnippetAttribute) {
      PsiSnippetAttribute attribute = (PsiSnippetAttribute)parent;
      String name = attribute.getName();
      if (name.equals(PsiSnippetAttribute.CLASS_ATTRIBUTE)) {
        return new SnippetFileReference(false);
      }
      else if (name.equals(PsiSnippetAttribute.FILE_ATTRIBUTE)) {
        return new SnippetFileReference(true);
      }
    }
    return null;
  }
@Override
  public PsiReference getReference()