boolean (@NotNull Project project, Editor editor, PsiFile file) { if (!myClass.isValid() || !myParameterList.isValid() || myClass instanceof PsiCompiledElement) { return false; } if (myClass.getTypeParameters().length >= myParameterList.getTypeArguments().length) { return false; } final PsiTypeParameterList classTypeParameterList = myClass.getTypeParameterList(); if (classTypeParameterList == null) { return false; } setText(QuickFixBundle.message("change.class.signature.text", myClass.getName(), myParameterList.getText())); return true; }