@Override
  public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
    return !myModules.isEmpty() && ContainerUtil.all(myModules.keySet(), PsiElement::isValid);
  }
@Override
  public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file)