void (@NotNull Set<?> set) { if (set instanceof ObjectOpenHashSet<?>) { ((ObjectOpenHashSet<?>)set).trim(); } else if (set instanceof ObjectOpenCustomHashSet) { ((ObjectOpenCustomHashSet<?>)set).trim(); } }