boolean () { String superClass = mySuperClassField.getText(); if (StringUtil.isEmptyOrSpaces(superClass)) { return false; } for (TestFramework framework : TestFramework.EXTENSION_NAME.getExtensionList()) { if (superClass.equals(framework.getDefaultSuperClass())) { return false; } if (superClass.equals(getLastSelectedSuperClassName(framework))) { return false; } } return true; }