boolean (@NotNull IntentionAction action, @NotNull PsiFile file) { return action.getText().contains("java.text.MessageFormat") && JavaPsiFacade.getInstance(file.getProject()).findClass("java.text.MessageFormat", file.getResolveScope()) == null; }