void () { myDetectorsById = new HashMap<>(); myDetectorsByFileType = new MultiMap<>(); myDetectorsMap = new MultiMap<>(); for (FrameworkDetector detector : FrameworkDetector.EP_NAME.getExtensionList()) { myDetectorsById.put(detector.getDetectorId(), detector); myDetectorsByFileType.putValue(detector.getFileType(), detector.getDetectorId()); myDetectorsMap.putValue(detector.getFileType(), Pair.create(detector.createSuitableFilePattern(), detector.getDetectorId())); LOG.debug("'" + detector.getDetectorId() + "' framework detector registered"); } myAcceptedTypes = myDetectorsByFileType.keySet().toArray(FileType.EMPTY_ARRAY); }