public static boolean isClassFile(Path path) {
        return path.toString().toLowerCase(Locale.ROOT).endsWith(".class");
    }
Return whether a path corresponds java class file.

@param path the path to validate.
@return true if the path is a java class file, otherwise false.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/PluginUtils.java