String () { return switch (myTestType) { case TEST_CLASS -> PyBundle.message("runcfg.unittest.suggest.name.in.class", getPluralTitle(), myClassName); case TEST_METHOD -> getTitle() + " " + myClassName + "." + myMethodName; case TEST_SCRIPT -> { String name = new File(getScriptName()).getName(); name = StringUtil.trimEnd(name, ".py"); yield PyBundle.message("runcfg.unittest.suggest.name.in.script", getPluralTitle(), name); } case TEST_FOLDER -> { String folderName = new File(myFolderName).getName(); yield PyBundle.message("runcfg.unittest.suggest.name.in.folder", getPluralTitle(), folderName); } case TEST_FUNCTION -> getTitle() + " " + myMethodName; }; }