void (@NotNull AbstractTreeNode deploymentNode, @NotNull String logName) { DeploymentNodeImpl node = ObjectUtils.tryCast(deploymentNode, DeploymentNodeImpl.class); if (node == null) return; ServerConnection<?> connection = node.getConnection(); if (connection == null) return; Project project = Objects.requireNonNull(node.getProject()); DeploymentLogManagerImpl logManager = (DeploymentLogManagerImpl)connection.getLogManager(project, node.getDeployment()); if (logManager == null) return; for (LoggingHandlerBase loggingComponent : logManager.getAdditionalLoggingHandlers()) { if (logName.equals(loggingComponent.getPresentableName())) { DeploymentLogNode logNode = new DeploymentLogNode(project, loggingComponent, node); ServiceViewManager.getInstance(project).select(logNode, DefaultRemoteServersServiceViewContributor.class, true, true); } } }