boolean (@NotNull VirtualFile root) { String relPath = "java/awt/event/annotations.xml"; VirtualFile xml = root.findFileByRelativePath(relPath); if (xml == null) { reportCorruptedJdkAnnotations(root, "there's no file " + root.getPath() + "/" + relPath); return false; } MostlySingularMultiMap<String, BaseExternalAnnotationsManager.AnnotationData> loaded = BaseExternalAnnotationsManager.loadData(xml, LoadTextUtil.loadText(xml), null); Iterable<BaseExternalAnnotationsManager.AnnotationData> data = loaded.get("java.awt.event.InputEvent int getModifiers()"); BaseExternalAnnotationsManager.AnnotationData magicAnno = ContainerUtil.find(data, ann -> ann.toString().startsWith(MagicConstant.class.getName() + "(")); if (magicAnno != null) return true; reportCorruptedJdkAnnotations(root, "java.awt.event.InputEvent.getModifiers() not annotated with MagicConstant: "+data); return false; }