void (@NotNull Project project, @NotNull ProjectSystemId systemId, @NotNull ExternalConfigPathAware configPathAware, @NotNull AnActionEvent e) { VirtualFile configFile = getExternalConfig(configPathAware, systemId); if (configFile != null) { OpenFileDescriptor descriptor = new OpenFileDescriptor(project, configFile); FileEditorManager.getInstance(project).openTextEditor(descriptor, true); } }