void (@NotNull Project project, VirtualFile file, List<XmlTag> tags) { if (file == null) { choosePropertiesFileAndExtract(project, tags, selection -> { PropertiesFile propertiesFile = findPropertiesFile(project, selection); doFix(project, tags, propertiesFile, true); }); } else { PropertiesFile propertiesFile = PropertiesImplUtil.getPropertiesFile(PsiManager.getInstance(project).findFile(file)); doFix(project, tags, propertiesFile, false); } }