boolean (@NotNull PackagingElementNode<?> pathComponent, @NotNull Object thisComponent) { //noinspection unchecked return thisComponent instanceof Predicate && ((Predicate<PackagingElementNode<?>>)thisComponent).test(pathComponent); }