void (StreamToLoopReplacementContext context, ChainVariable inVar, ChainVariable outVar) { if (myQualifier instanceof PsiReferenceExpression) { String name = ((PsiReferenceExpression)myQualifier).getReferenceName(); if(name != null) { String singularName = StringUtil.unpluralize(name); if(singularName != null && !name.equals(singularName)) { outVar.addOtherNameCandidate(singularName); } } } }