ASTNode (@NotNull ASTNode parent) { ASTNode current = parent.getFirstChildNode(); while(current != null){ if (ArrayUtil.indexOfIdentity(myComputable.get(), current.getElementType()) != -1) { return current; } current = current.getTreeNext(); } return null; }