VirtualFile (ConfigurationContext context) { Location location = context.getLocation(); if (location == null) return null; VirtualFile file = location.getVirtualFile(); return file != null && FileUtilRt.extensionEquals(file.getName(), "jar") ? file : null; }