TextRange (PsiMethodCallExpression call) { if(!InspectionProjectProfileManager.isInformationLevel("SimplifyForEach", call)) { PsiReferenceExpression methodExpression = call.getMethodExpression(); return new TextRange(methodExpression.getTextOffset(), call.getArgumentList().getTextOffset()); } return call.getTextRange(); }