boolean (@NotNull DataContext dataContext) { final RefactoringActionHandler handler = getHandler(dataContext); if (handler != null) { if (handler instanceof ContextAwareActionHandler) { final Editor editor = CommonDataKeys.EDITOR.getData(dataContext); final PsiFile file = CommonDataKeys.PSI_FILE.getData(dataContext); if (editor != null && file != null && !((ContextAwareActionHandler)handler).isAvailableForQuickList(editor, file, dataContext)) { return false; } } return true; } return false; }