void (PsiReference ref) { myClearCount.incrementAndGet(); final boolean physical = ref.getElement().isPhysical(); if (ref instanceof PsiPolyVariantReference) { cache((PsiPolyVariantReference)ref, null, myPolyVariantResolveMaps, physical, false, myClearCount.intValue()); cache((PsiPolyVariantReference)ref, null, myPolyVariantResolveMaps, physical, true, myClearCount.intValue()); } }