void (@NotNull PsiMethodCallExpression call) { if (!COLLECTION_TO_ARRAY.test(call)) return; final PsiExpression argument = call.getArgumentList().getExpressions()[0]; final PsiType type = argument.getType(); if (!(type instanceof PsiArrayType)) return; if (type.getArrayDimensions() != 1) return; boolean wrongArray = myMode.isEmptyPreferred(argument) ? isPresizedArray(argument, call.getMethodExpression().getQualifierExpression()) : isEmptyArray(argument); if (wrongArray) { registerMethodCallError(call, call, argument); } }