MoverWrapper (@NotNull final Editor editor, @Nullable final PsiFile file) { if (file == null) return null; // order is important! final StatementUpDownMover.MoveInfo info = new StatementUpDownMover.MoveInfo(); for (final StatementUpDownMover mover : StatementUpDownMover.STATEMENT_UP_DOWN_MOVER_EP.getExtensionList()) { if (mover.checkAvailable(editor, file, info, isDown)) { return new MoverWrapper(mover, info, isDown); } } // order is important //Mover[] movers = new Mover[]{new StatementMover(isDown), new DeclarationMover(isDown), new XmlMover(isDown), new LineMover(isDown)}; return null; }