@Nullable
  protected Module getNodeModule(@Nullable final Object element) {
    if (element instanceof PsiElement psiElement) {
      return ModuleUtilCore.findModuleForPsiElement(psiElement);
    }
    return null;
  }
@Nullable
  protected Module getNodeModule(@Nullable final Object element)