void (@NotNull PsiMethodReferenceExpression expression) { JavaResolveResult result; JavaResolveResult[] results; try { results = computeIfSmartMode(expression.getProject(), () -> expression.multiResolve(true)); result = results != null && results.length == 1 ? results[0] : JavaResolveResult.EMPTY; } catch (IndexNotReadyException e) { return; } PsiElement method = result.getElement(); if (!(method instanceof PsiJvmMember) || result.isAccessible()) { TextAttributesScheme colorsScheme = myHolder.getColorsScheme(); if (method instanceof PsiMethod && !expression.isConstructor()) { PsiElement methodNameElement = expression.getReferenceNameElement(); if (methodNameElement != null) { myHolder.add(HighlightNamesUtil.highlightMethodName((PsiMethod)method, methodNameElement, false, colorsScheme)); } } } }