void () { Collection<String> extensions = IdeLanguageCustomization.getInstance().getPrimaryIdeLanguages() .stream() .map(Language::getAssociatedFileType) .filter(Objects::nonNull) .flatMap(fileType -> Stream.concat( Stream.of(fileType.getDefaultExtension()), getAssociatedExtensions(fileType) ) ).collect(Collectors.toCollection(LinkedHashSet::new)); if (extensions.contains("java")) { extensions.add("properties"); extensions.add("jsp"); } if (!extensions.contains("sql")) { extensions.add("xml"); extensions.add("html"); extensions.add("css"); } String[] extensionsArray = ArrayUtil.toStringArray(extensions); for (int i = extensionsArray.length - 1; i >= 0; i--) { FindInProjectSettingsBase.addRecentStringToList("*." + extensionsArray[i], recentFileMasks); } }