void () { SimpleNode node = getSelectedNode(); if (node instanceof NullNode) node = null; myResult = node instanceof MavenProjectNode ? ((MavenProjectNode)node).getMavenProject() : null; super.doOKAction(); }