IDEA-88958: Allow to mark directories as Excluded inside external libraries - committed again, NPE fixed