JavaResolveResult (boolean incompleteCode) { final PsiElement resolved = resolve(); PsiSubstitutor substitutor = mySubstitutor; if (substitutor == null) { substitutor = PsiSubstitutor.EMPTY; } return new CandidateInfo(resolved, substitutor); }