public static @Nullable String resolveId(PsiFile psiFile, String id) {
    Map<String, String> map = getOrComputeIdsMap(psiFile);
    return map == null ? null : map.get(id);
  }
public static @Nullable String resolveId(PsiFile psiFile, String id)