void (@NotNull PsiMethodCallExpression expression) { super.visitMethodCallExpression(expression); if (!MATCHER.test(expression)) return; PsiExpression arg = ArrayUtil.getFirstElement(expression.getArgumentList().getExpressions()); if (arg == null) return; ExpressionUtils.nonStructuralChildren(arg). forEach(argument -> { if (PsiUtil.isConstantExpression(argument) && ExpressionUtils.hasStringType(argument)) { final String value = (String)ExpressionUtils.computeConstantExpression(argument); if (isRegexMetaChar(value, !isOnTheFly())) { registerError(argument, expression, argument); } } if (isFileSeparator(argument)) { registerError(argument, expression, argument); } }); }