void (final @NotNull AnActionEvent event, final boolean flag) { if (myViewMap.size() > 1) { List<String> names = new ArrayList<>(myViewMap.keySet()); String viewName = flag ? names.get(0) : names.get(1); showView(viewName); ApplicationManager.getApplication().invokeLater(() -> update(event)); } }