DomElement (final Project project, final Editor editor, final PsiFile file) { MavenDomProjectModel domProjectModel = MavenDomUtil.getMavenDomModel(file, MavenDomProjectModel.class); return domProjectModel == null ? null : myParentFunction.fun(domProjectModel); }