void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); if (PlatformUtils.isRider()) { presentation.setVisible(false); return; } IdeView view = getIdeView(e); if (view != null) { presentation.setVisible(e.getProject() != null && isAvailableFor(view.getDirectories())); } else { presentation.setEnabledAndVisible(false); } presentation.setIcon(AllIcons.Nodes.Editorconfig); }