private static boolean equalsToText(PsiType type, @NotNull String text) {
    return type != null && type.equalsToText(text);
  }
private static boolean equalsToText(PsiType type, @NotNull String text)