boolean (@Nullable PsiElement element1, @Nullable PsiElement element2) { PsiMethod method1 = ObjectUtils.tryCast(element1, PsiMethod.class); if (!PATH_CONSTRUCTOR.methodMatches(method1)) return false; PsiMethod method2 = ObjectUtils.tryCast(element2, PsiMethod.class); return PATH_CONSTRUCTOR.methodMatches(method2); }