JavaResolveResult (final boolean incompleteCode) { if (isPrimitiveType) { return new CandidateInfo(element, PsiSubstitutor.EMPTY, false, false, element); } return super.advancedResolve(incompleteCode); }