ResolveResult[] (PsiPolyVariantReference ref, PolyVariantResolver resolver, boolean needToPreventRecursion, boolean incompleteCode) { ResolveResult[] result = resolve(ref, resolver, myPolyVariantResolveMaps, needToPreventRecursion, incompleteCode); return result == null ? JavaResolveResult.EMPTY_ARRAY : result; }