boolean (@NotNull DataContext dataContext) { Project project = dataContext.getData(CommonDataKeys.PROJECT); if (project == null) { return false; } Editor editor = dataContext.getData(CommonDataKeys.EDITOR); if (editor != null && InplaceRefactoringContinuation.hasInplaceContinuation(editor, RenameElementAction.class)) { return true; } return getAvailableRenamers(dataContext).findAny().isPresent(); }