class IndexListJob extends VisorJob<CacheIndexesListCommandArg, Set<IndexListInfoContainer>> {
        /** */
        private static final long serialVersionUID = 0L;

        /**
         * Create job with specified argument.
         *
         * @param arg Job argument.
         * @param debug Flag indicating whether debug information should be printed into node log.
         */
        protected IndexListJob(@Nullable CacheIndexesListCommandArg arg, boolean debug) {
            super(arg, debug);
        }

        /** {@inheritDoc} */
        @Override protected Set<IndexListInfoContainer> run(@Nullable CacheIndexesListCommandArg arg) throws IgniteException {<FILL_FUNCTION_BODY>}

        /** */
        @Nullable private Pattern getPattern(String regex) {
            return regex == null ? null : Pattern.compile(regex.toLowerCase());
        }

        /** */
        private static IndexListInfoContainer constructContainer(GridCacheContext<?, ?> ctx, InlineIndexImpl idx) {
            return new IndexListInfoContainer(
                ctx,
                idx.indexDefinition().idxName().idxName(),
                idx.indexDefinition().indexKeyDefinitions().keySet(),
                idx.indexDefinition().idxName().tableName()
            );
        }

        /** */
        private static boolean isNameValid(Pattern pattern, String name) {
            if (pattern == null)
                return true;

            return pattern.matcher(name.toLowerCase()).find();
        }
    }

            if (arg == null)
                throw new IgniteException("CacheIndexesListCommandArg is null");

            Pattern indexesPtrn = getPattern(arg.indexName());
            Pattern grpsPtrn = getPattern(arg.groupName());
            Pattern cachesPtrn = getPattern(arg.cacheName());

            Set<IndexListInfoContainer> idxInfos = new HashSet<>();

            for (GridCacheContext<?, ?> ctx : ignite.context().cache().context().cacheContexts()) {
                final String cacheName = ctx.name();

                final String grpName = ctx.config().getGroupName();
                final String grpNameToValidate = grpName == null ? EMPTY_GROUP_NAME : grpName;

                if (!isNameValid(grpsPtrn, grpNameToValidate))
                    continue;

                if (!isNameValid(cachesPtrn, cacheName))
                    continue;

                Collection<Index> idxs = ignite.context().indexProcessor().indexes(cacheName);

                for (Index idx : idxs) {
                    if (!isNameValid(indexesPtrn, idx.name()))
                        continue;

                    InlineIndexImpl idx0 = idx.unwrap(InlineIndexImpl.class);

                    if (idx0 != null)
                        idxInfos.add(constructContainer(ctx, idx0));
                }
            }

            return idxInfos;
        
<methods>public non-sealed void <init>() <variables>