public static boolean areEquivalent(@NotNull PsiElement element1,
                                      @NotNull PsiElement element2,
                                      @Nullable BiPredicate<? super PsiElement, ? super PsiElement> resolvedElementsEqual,
                                      boolean areCommentsSignificant) {
    return areEquivalent(element1, element2, new ReferenceComparator(resolvedElementsEqual), null, null, areCommentsSignificant);
  }
public static boolean areEquivalent(@NotNull PsiElement element1,
                                      @NotNull PsiElement element2,
                                      @Nullable BiPredicate<? super PsiElement, ? super PsiElement> resolvedElementsEqual,
                                      boolean areCommentsSignificant)