String (PsiClass targetClass) { JavaCodeStyleSettings customSettings = JavaCodeStyleSettings.getInstance(targetClass.getContainingFile()); String prefix = customSettings.TEST_NAME_PREFIX; String suffix = customSettings.TEST_NAME_SUFFIX; return prefix + targetClass.getName() + suffix; }