boolean (@NotNull CandidateInfo method, @NotNull CandidateInfo conflict, boolean fixedArity) { if (method == conflict) return true; PsiElement psiElement = method.getElement(); PsiElement conflictElement = conflict.getElement(); if (psiElement instanceof PsiMethod && conflictElement instanceof PsiMethod) { return fixedArity && ((PsiMethod)psiElement).getParameterList().getParametersCount() != ((PsiMethod)conflictElement).getParameterList().getParametersCount(); } return false; }