int (@NotNull RefJavaElement refElement) { if (refElement instanceof RefParameter) return 0; RefEntity refOwner = refElement.getOwner(); if (!(refOwner instanceof RefJavaElement)) return 1; return 1 - getElementProblemCount((RefJavaElement)refOwner); }