@Override
  public @Nullable <P extends JpsElement> P getProperties(@NotNull Set<? extends JpsModuleSourceRootType<P>> types) {
    if (types.contains(myRootType)) {
      return (P)getProperties();
    }
    return null;
  }
@Override
  public @Nullable <P extends JpsElement> P getProperties(@NotNull Set<? extends JpsModuleSourceRootType<P>> types)