IndexedContainer (CountingLoop loop, PsiAssignmentExpression assignment) { IndexedContainer container = IndexedContainer.fromLengthExpression(loop.getBound()); if (container == null) { if (!(assignment.getLExpression() instanceof PsiArrayAccessExpression arrayAccessExpression)) { return null; } container = IndexedContainer.arrayContainerWithBound(arrayAccessExpression, loop.getBound()); } return container; }