How to determine the CMake VTK "COMPONENTS" necessary for a class?

python3 "$VTK_ROOT/Utilities/Maintenance/FindNeededModules.py" -j $VTK_ROOT/build/modules.json -s vtkHelloworld.cpp worked for me: VTK-9: How to know which VTK COMPONENT contains which VTK class?.

Not sure what is the recommended way to go