boolean (@Nullable PsiElement o1, @Nullable PsiElement o2) { if (o1 == o2) { return true; } if (o1 == null || o2 == null) { return false; } return ReadAction.compute(() -> PsiEquivalenceUtil.areElementsEquivalent(o1, o2)); }