private static boolean hasNullSubstitutions(@NotNull PsiSubstitutor substitutor) {
    return substitutor.getSubstitutionMap().containsValue(null);
  }
private static boolean hasNullSubstitutions(@NotNull PsiSubstitutor substitutor)