boolean (@NotNull DataContext dataContext) { final Project project = CommonDataKeys.PROJECT.getData(dataContext); if (project == null) { return false; } final ResourceBundle bundle = ResourceBundleUtil.getResourceBundleFromDataContext(dataContext); if (bundle == null) { return false; } final FileEditor fileEditor = PlatformCoreDataKeys.FILE_EDITOR.getData(dataContext); if (!(fileEditor instanceof ResourceBundleEditor)) { return false; } final VirtualFile virtualFile = CommonDataKeys.VIRTUAL_FILE.getData(dataContext); return virtualFile instanceof ResourceBundleAsVirtualFile; }