boolean (@NotNull VirtualFile root, @NotNull QualifiedName qName) { if (THIRD_PARTY_PACKAGE_ROOT_NAMES.contains(root.getName())) { List<String> internalQNameComponents = qName.removeHead(1).getComponents(); if (myExcludeThirdPartyTests && ContainerUtil.exists(internalQNameComponents, TEST_ROOT_NAMES::contains)) { return true; } if (myExcludeThirdPartyBundledDeps && ContainerUtil.exists(internalQNameComponents, BUNDLED_DEPS_ROOT_NAMES::contains)) { return true; } } return false; }