ConsoleFolding (@NotNull FoldRegion region) { String lastFoldingFqn = USED_FOLDING_FQN_KEY.get(region); if (lastFoldingFqn == null) return null; ConsoleFolding consoleFolding = ConsoleFolding.EP_NAME.getByKey(lastFoldingFqn, ConsoleViewImpl.class, ConsoleViewImpl::getFoldingFqn); return consoleFolding != null && consoleFolding.isEnabledForConsole(this) ? consoleFolding : null; }