@Override
  public PsiFile fromString(@Nullable @NonNls String s, @NotNull ConvertContext context) {
    if (StringUtil.isEmptyOrSpaces(s)) return null;

    VirtualFile contextFile = context.getFile().getVirtualFile();
    if (contextFile == null) return null;

    VirtualFile parent = contextFile.getParent();
    if (parent == null) {
      return null;
    }
    VirtualFile f = parent.findFileByRelativePath(s);
    if (f == null) return null;

    if (f.isDirectory()) f = f.findChild(MavenConstants.POM_XML);
    if (f == null) return null;

    return context.getPsiManager().findFile(f);
  }
@Override
  public PsiFile fromString(@Nullable @NonNls String s, @NotNull ConvertContext context)