boolean (@NotNull KtNamedDeclaration a, @NotNull KtNamedDeclaration b) { boolean sameReceiverPresence = (getReceiverType(a) == null) == (getReceiverType(b) == null); boolean sameParametersCount = getValueParameters(a).size() == getValueParameters(b).size(); return sameReceiverPresence && sameParametersCount; }