EditorConfigDescribableElement (@NotNull final EditorConfigOptionValuePair pair) { final Optional<PsiElement> first = Arrays.stream(pair.getChildren()) .filter(child -> child instanceof EditorConfigDescribableElement) .findFirst(); if (first.isEmpty()) { throw new IllegalStateException(); } return (EditorConfigDescribableElement)first.get(); }