don't index files excluded from libraries (IDEA-134115) [rev by Maxim M.]