boolean (@NotNull IntentionAction intentionAction, @Nullable PsiFile file) { if (!(file instanceof IntentionFilterOwner)) return true; final IntentionFilterOwner.IntentionActionsFilter actionsFilter = ((IntentionFilterOwner)file).getIntentionActionsFilter(); if (actionsFilter == null || actionsFilter == IntentionFilterOwner.IntentionActionsFilter.EVERYTHING_AVAILABLE) return true; return actionsFilter.isAvailable(intentionAction); }