void (PsiMethodCallExpression call, PsiExpression formatString) { formatString = PsiUtil.skipParenthesizedExprDown(formatString); if (!(formatString instanceof PsiPolyadicExpression polyadicExpression)) return; if (!ExpressionUtils.hasStringType(formatString)) return; if (PsiUtil.isConstantExpression(formatString)) return; final PsiExpression[] operands = polyadicExpression.getOperands(); if (!ContainerUtil.exists(operands, o -> ExpressionUtils.nonStructuralChildren(o).anyMatch( c -> c instanceof PsiReferenceExpression || c instanceof PsiMethodCallExpression || c instanceof PsiArrayAccessExpression))) { return; } registerError(formatString, call.getMethodExpression().getReferenceName()); }