void () { super.registerValidators(); if (myProjectGenerator instanceof PythonProjectGenerator) { addLocationChangeListener(event -> { final String fileName = PathUtil.getFileName(getProjectLocation()); ((PythonProjectGenerator<?>)myProjectGenerator).locationChanged(fileName); }); } }