CountingLoopSource (PsiForStatement forStatement) { CountingLoop loop = CountingLoop.from(forStatement); if (loop == null || loop.isDescending()) return null; return new CountingLoopSource(forStatement, loop.getCounter(), loop.getInitializer(), loop.getBound(), loop.isIncluding()); }