void () { final PsiManager manager = PsiManager.getInstance(myProject); myTargetClass = JavaPsiFacade.getInstance(manager.getProject()).findClass(getTargetClassName(), GlobalSearchScope.projectScope(myProject)); myTable.fireExternalDataChange(); myIntroduceEnumConstants.setEnabled(myTargetClass != null && myTargetClass.isEnum()); }