MethodInferenceData (PsiMethod method) { if (!(method instanceof PsiMethodImpl)) { return MethodInferenceData.UNKNOWN; } return CachedValuesManager.getCachedValue( method, () -> CachedValueProvider.Result.create(infer((PsiMethodImpl)method), method, PsiModificationTracker.MODIFICATION_COUNT)); }