void (PsiMethodCallExpression call, PsiElement nameElement, @InspectionMessage String message) { TextRange range; if (isOnTheFly && InspectionProjectProfileManager.isInformationLevel(getShortName(), call)) { range = new TextRange(0, call.getTextLength()); } else { range = nameElement.getTextRange().shiftRight(-call.getTextOffset()); } holder.registerProblem(call, range, message, new ReplaceStreamWithLoopFix(message)); }