private static String prunePluginName(PluginDesc<?> plugin, String suffix) {
        String simple = plugin.pluginClass().getSimpleName();
        int pos = simple.lastIndexOf(suffix);
        if (pos > 0) {
            return simple.substring(0, pos);
        }
        return simple;
    }
Remove the plugin type name at the end of a plugin class name, if such suffix is present.
This method is meant to be used to extract plugin aliases.

@param plugin the plugin descriptor.
@return the pruned simple class name of the plugin.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/PluginUtils.java