public @Nullable PsiFileSystemItem resolve() {
    final FileReference lastReference = getLastReference();
    return lastReference == null ? null : lastReference.resolve();
  }
public @Nullable PsiFileSystemItem resolve()