PsiMethod (@NotNull JavaResolveResult resolveResult) { PsiMethod psiMethod = (PsiMethod)resolveResult.getElement(); PsiMethod methodToUseInstead = psiMethod == null ? null : psiMethod.getUserData(LightMethodObjectExtractedData.REFERENCE_METHOD); if (methodToUseInstead != null) { psiMethod = methodToUseInstead; } return psiMethod; }