DataNode<ModuleData> (@Nullable final DataNode<ProjectData> projectNode, @NotNull final String modulePath) { if (projectNode == null) return null; return ExternalSystemApiUtil.find(projectNode, ProjectKeys.MODULE, node -> node.getData().getLinkedExternalProjectPath().equals(modulePath)); }