void (@NotNull PsiMethodCallExpression expression) { if (!CloneUtils.isCallToClone(expression)) { return; } final PsiExpression qualifierExpression = expression.getMethodExpression().getQualifierExpression(); if (qualifierExpression != null) { final PsiType type = qualifierExpression.getType(); if (type instanceof PsiArrayType) { return; } } registerMethodCallError(expression, expression); }